On 11 Dec 2009, at 1:58pm, reiser.p...@gmail.com wrote: > I have enabled web sharing, so I guess Apache is up and running. I have > un-commented out the line in /etc/apache2/httpd.conf which reads > > LoadModule php5_module libexec/apache2/libphp5.so > > I have written a program called test.php and when I bring it up in my > browser, I get a message: "cannot find driver". I think its having a problem > with the first line of the php program:
Run the PHP INFO routine: phpinfo(); and search for the word 'sqlite' in it. You should fine it listed in the PDO section. You should also see the following sections: 'pdo_sqlite', 'SQLite' and 'sqlite3'. If any of those are missing you do not have sqlite enabled properly, possibly because of modules, possibly because of compilation options. On 11 Dec 2009, at 2:03pm, Swithun Crowe wrote: > $dbHandle = new PDO('sqlite:/Users/mymachine/'."$user_db"); > > The sqlite: should be at the beginning of the DSN (Data Source Name), so > that PDO can recognise the name of the driver to use. Alternatively, use the native sqlite commands instead of the PDO driver: http://php.net/manual/en/book.sqlite.php Simon. _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users