php5 and sqlite

M. Brooks Clark brooks at
Sun Oct 4 16:37:09 PDT 2009

I have installed php5 along with php5-sqlite. When I try to access a  
mysql database using PHP, however, I get an exception.

The line to open the database is:

$db = new PDO("sqlite:/opt/local/var/wview/archive/ 

The exception I get is:

"could not find driver"

Am I missing something in my config files and/or is there something  
else I need to include in the php code?

I'm running MacPorts v1.8.1 on Snow Leopard.



More information about the macports-users mailing list