Page 1 of 1

SQLite3 PDO exception: could not find driver

PostPosted: 23. February 2007 01:00
by frigstaad
Hello, I'm trying to get SQLite3 running with PDO.

When I run a simple create command:
Code: Select all
$dbh = new PDO('C:\\path\\to\\new.db3');

it throws up a 'could not find driver' exception.

I've uncommented the following lines in php.ini
Code: Select all
extension=php_pdo.dll
extension=php_pdo_sqlite.dll
extension=php_sqlite.dll


phpinfo confirms that the pdo drivers are enabled:
Code: Select all
PDO support   enabled
PDO drivers    mssql, mysql, sqlite, sqlite2


But the pdo_sqlite section shows the library as undefined.
Code: Select all
PDO Driver for SQLite 3.x: enabled
PECL Module version: 1.0.1 $Id: pdo_sqlite.c,v 1.10.2.6.2.1 2007/01/01 09:36:05 sebastian Exp $
SQLite Library: 3.3.7undefined


I've tested the non-PDO sqlite commands for sqlite2 works and they work fine. I'm running windows xp and xampp 1.6.0.

Thanks for any help...

PS: I would also like to thank all of the apache friends folks. I don't know what I'd do without XAMPP... thanks for all the hard work.

PostPosted: 23. February 2007 01:17
by Wiedmann

thanks

PostPosted: 23. February 2007 02:30
by frigstaad
Bah! One of those RTFM moments.

Thanks Wiedmann...