SQLite3 PDO exception: could not find driver

Problems with the Windows version of XAMPP, questions, comments, and anything related.

SQLite3 PDO exception: could not find driver

Postby frigstaad » 23. February 2007 01:00

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.
frigstaad
 
Posts: 2
Joined: 23. February 2007 00:35

Postby Wiedmann » 23. February 2007 01:17

Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

thanks

Postby frigstaad » 23. February 2007 02:30

Bah! One of those RTFM moments.

Thanks Wiedmann...
frigstaad
 
Posts: 2
Joined: 23. February 2007 00:35


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 44 guests