News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

DevShed:
PHP Datastorage Class
November 15, 2005 @ 05:53:15

DevShed has a new tutorail on the PHP section of their site today - one that seeks to help you build a "PHP Datastorage Class" for three different types of storage.

Many websites use databases for storing data for use by web applications. There are situations in which this is not the best solution, however. For light, moderate, or temporary storage requirements, you might prefer to use flat files, session variables, and cookies. This article will describe how to create a class that handle all of these. It is the first of two parts.

In this article I will guide you through the design of a data storage class that can meet the needs of a long list of web applications requiring light to moderate or temporary storage requirements.

Of course, you'll need a bit of object-orient experience with PHP to get the most out of this tutorial, but since they lay all of the code out and explain each piece, just about any skill level can catch on. In this part of the series, they focus more on the use of flat-files to store the data, showing how to create them, push the data in, and pull it all back out.

0 comments voice your opinion now!
data storage class flat-file data storage class flat-file


blog comments powered by Disqus

Similar Posts

International PHP Magazine: IPM Poll Question: Which is your Favorite CMS written in PHP?

DevShed: Handling File Data with the Facade Pattern in PHP 5

Lorna Mitchell's Blog: 3 Ways to Access a Namespaced PHP Class

Elated.com: Object-Oriented PHP: Autoloading, Serializing, and Querying Objects

Matthias Noback: Decoupling from a service locator


Community Events

Don't see your event here?
Let us know!


series project part2 list laravel language example interview php7 introduction conference api community framework podcast application opinion symfony composer yii2

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework