Page 1 of 1

PHP database substitute

Posted: Sun Mar 12, 2006 7:18 pm
by smbeans
I am fixing up a website for my brother. He has purchased webhosting which works with PHP but doesn't have a database.

Somewhere in the dim (OK very dim) recesses of my brain I remember reading about a database substitute programmed in PHP. I can't for the life of me remember where. Any ideas?

I would like to hook into this using database abstraction so that when I move the website into better webhosting I'll be able to use a proper database.

Posted: Sun Mar 12, 2006 8:16 pm
by feyd

Posted: Sun Mar 12, 2006 8:20 pm
by smbeans
I stumbled across this after I'd posted. I only have access to the webhosting via FTP.

I've been trying to remember what the command is to get the installation info on PHP. I doubt the webhosting is configured with the phpLite functions.

Can I create the database and upload it via FTP?

Posted: Sun Mar 12, 2006 8:26 pm
by smbeans
phpinfo() has been disabled on the webserver.

For this my brother is paying $229 a year. Not happy, Jan.

Posted: Sun Mar 12, 2006 8:46 pm
by feyd
get_loaded_extensions(), get_defined_constants(), defined('SQLITE_OK'), function_exists('sqlite_close')

SQLite was added in PHP 5 however. I doubt the host has PHP 5.

the following may be of interest
http://www.phpclasses.org/browse/package/2673.html

Posted: Sun Mar 12, 2006 8:49 pm
by smbeans
Ahh - that looks much more promising.

Thank you for your help.