Just FYI: James told me in private mail " SQLiteDatabase is not working for sqlite3, I changed the open script to:
$dbh = new PDO('sqlite:yourdatabase.db'); Now it is working. " On Sun, 03 Jul 2011 16:08:24 +0200, Kees Nuyt <k.n...@zonnet.nl> wrote: >On Sun, 3 Jul 2011 06:47:26 -0700 (PDT), James_21th ><james_2...@yahoo.com> wrote: > >>Dear experts, >> >>I was quite excited when I see such a nice portable database---SQLite, which >>can be installed locally. >> >> [snip] >> >>My test php file is very simple: >> >><?php >>$db = new SQLiteDatabase('test.db'); >>echo "SQLite successfully opened"; >>?> >> >>However, no matter how I tried, it give me "HTTP 500 internal server error", >>I checked the Nanoweb error log, found below message: >> >>20110703:054052 WARN: function 'pcntl_fork' not available >>20110703:054052 WARN: function 'posix_setuid' not available >> >>Do I missed anything? >> >>Your help is greatly appreciated! > >You may have used the wrong interface. >Perhaps this example helps: > >http://php.net/manual/en/intro.sqlite3.php > >I'm not sure, but SQLiteDatabase seems to refer to the deprecated >sqlite v2 interface. > >HTH -- ( Kees Nuyt ) c[_] _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users