PHP database substitute

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
smbeans
Forum Newbie
Posts: 8
Joined: Sun Mar 12, 2006 7:13 pm

PHP database substitute

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

smbeans
Forum Newbie
Posts: 8
Joined: Sun Mar 12, 2006 7:13 pm

Post 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?
smbeans
Forum Newbie
Posts: 8
Joined: Sun Mar 12, 2006 7:13 pm

Post by smbeans »

phpinfo() has been disabled on the webserver.

For this my brother is paying $229 a year. Not happy, Jan.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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
smbeans
Forum Newbie
Posts: 8
Joined: Sun Mar 12, 2006 7:13 pm

Post by smbeans »

Ahh - that looks much more promising.

Thank you for your help.
Post Reply