I'm on a shared hosting environment where for some reason PHP has been complied with SQlite disabled. The host is unwilling to make any changes to the set-up. I'm stuck with the host for other reasons, unfortunately. There is also no PDO or MySQL support complied in.
开发者_如何学CIs there any way to enable SQlite (or another database solution) without root access? I have non-root SSH access.
Alternatively is there any library that allows database-like functionality using flat files?
Many thanks,
Jack
http://www.c-worker.ch/txtdbapi/index_eng.php flat file SQL storage
http://pecl.php.net/package/SQLite
http://www.sqlite.org/cvstrac/wiki?p=SqliteWrappers
PHP
SQLite is bundled with PHP 5. http://www.php.net
PHP 4 extension for SQLite. (Official) http://pecl.php.net/package/SQLite
PEAR DB contains an interface for SQLite. http://pear.php.net/package/DB
PHP driver for SQLite 3.XX (Unofficial). Also includes a PEAR DB driver class http://php-sqlite3.sourceforge.net
PHP driver for SQLite. (Unofficial) http://freshmeat.net/projects/sqlite-php (no longer being worked on; see above)
ADOdb database abstraction layer for PHP 4/5 is supporting SQLite. http://adodb.sourceforge.net/
Creole - Common Database API for ZE2 supports SQLite. http://creole.phpdb.org/
SQLiteDB: A simple wrapper class that supports ALTER TABLE statements.
PHP Hosting Tutorials:
There are a fair few flat-file-databases supported by PHP (assuming that they're compiled in) - you'll want to use the DBA abstraction functions. The list of supported databases can be found here.
精彩评论