|
|
| ||||
Other Projects | Simple DBA PHP5 class to allow the manipulation of a text file using SQL syntax. This is something I wrote quite a while ago when I was working on a site that didn't have a database. Their intention was to get one later, so in order to make it easier to migrate over when they did, I treated the text files as if they were database tables and used sql syntax as closely as possible to extract information from it. It worked like a charm, and made switching much easier. I didn't need to do very complex stuff, and I always meant to support things like and/or in the where clause, but life got in the way, so I just migrated it to a PHP 5 class. It would be easy enough to implement, and I'll do it if there is any interest in it. To use it, you just need to put it on the server, and then call it from the script where you want the functionality. include("YourPath/SimpleDB.php");Note: You do not need to quote stringsIt can be downloaded here. Hope it's useful to somebody. Leave any feedback in the comments. | JQuery/PHP Website and Applications Developer, based in Ireland. Help me build a supercomputer | |||
| Page Layout and Program Design by Paul Hanlon Page visited 2909 times. | |||||
0 Comments
Post New Comment