Page 1 of 1

Can't get pdo to work with Postgres

Posted: Tue Jul 20, 2010 12:42 pm
by jimboidaho
I admit it. I am a newb to PHP. I have been trying to get the pdo drivers to work with no success. I get an error "could not find driver". I think I have the php.ini file setup correctly but here is my setting just in case.
extension=php_pgsql.dll
extension=php_pdo.dll
extension="php_pdo_pgsql.dll"

Any help would be very much appreciated.

UPDATE: Looks like I am missing the php_pdo_pgsql.dll file in my php ext directory. Any idea where I can find it? I can't seem to find it via google. I have found the source but I don't really have the setup to compile. I have php version 5.3.2 loaded and the docs say the dll should be there but it is not.

anyone know where I can get the php_pdo_pgsql.dll file?
Thanks

Re: Can't get pdo to work with Postgres

Posted: Fri Jul 23, 2010 9:31 am
by jimboidaho
Any Suggestions?

Re: Can't get pdo to work with Postgres

Posted: Fri Jul 23, 2010 10:53 am
by Rovas
Have you tried to connect using the PostgreSQL PHP functions?
The PostgreSQL server is running?
If the database is running and you can connect to it then repair or reinstall PHP if you still want to use PDO.

Re: Can't get pdo to work with Postgres

Posted: Fri Jul 23, 2010 10:59 am
by jimboidaho
Thanks for your reply. I can connect to Postgres using the other php functions. I have tried reinstalling php with no success. Is there any issues running wind7 64bit?