> 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:
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:
On Fri, 11 Dec 2009 09:13:33 -0500, Simon Slavin <[hidden email]>
> Run the PHP INFO routine:
> 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.
Not exactly true: 'pdo_sqlite' and 'sqlite3' provide two independent
interfaces to SQLite 3, and 'sqlite' provides an interface to SQLite 2.
If you're missing -all- of them (or, realistically, only have 'sqlite'),
then you're in trouble, but any of them missing could simply be a