php5 and sqlite

M. Brooks Clark brooks at clarksonline.net
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/ 
weatherAverages.sqlite");

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.


Thanks,

Brooks


More information about the macports-users mailing list