NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Could Not Find Driver errors *solved*


Joined: 10 Dec 2006
Posts: 37
Reply with quote
Ok, I'm confused. I'm trying to get phpdock working with sqlite 3, and hitting the above error. The code I've got is:

php.ini:
extension=php_pdo.dll
extension=php_sqlite.dll
;extension=php_pdo_sqlite.dll

PHP script
Code:

// Open the DB
try{
  $dbHandle = new PDO('sqlite:'.$_SERVER['DOCUMENT_ROOT']."downloadmanager.db3");
} catch(PDOException $exception ) {
  die($exception->getMessage());
}


Any ideas how to get round this? I've read so many pages about different versions of sqlite, and php, pdo, etc, my brain's given up.

Andy
View user's profileFind all posts by Andrew PeacockSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8334
Reply with quote
if you need PDO sqlite driver, comment out php_sqlite and uncomment php_pdo_sqlite.
Also you may want to check if $_SERVER['DOCUMENT_ROOT']."downloadmanager.db3" produces correct and existing filename.
Regarding error message, it's up to sqlite library and extension maintainers.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 10 Dec 2006
Posts: 37
Reply with quote
Hi Dmitri,
I actually got it solved a little less than an hour ago, but thanks for your input.

I had copied the PHPdock files from c:\program files to the "my documents" folder that I use for development. And I'd forgotten to repoint phpdock.ini settings to the new location.

Regards,
Andy
View user's profileFind all posts by Andrew PeacockSend private message
Could Not Find Driver errors *solved*
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic