Can't get pdo to work with Postgres

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jimboidaho
Forum Newbie
Posts: 8
Joined: Wed Jul 07, 2010 11:33 am

Can't get pdo to work with Postgres

Post 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
jimboidaho
Forum Newbie
Posts: 8
Joined: Wed Jul 07, 2010 11:33 am

Re: Can't get pdo to work with Postgres

Post by jimboidaho »

Any Suggestions?
Rovas
Forum Contributor
Posts: 272
Joined: Mon Aug 21, 2006 7:09 am
Location: Romania

Re: Can't get pdo to work with Postgres

Post 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.
jimboidaho
Forum Newbie
Posts: 8
Joined: Wed Jul 07, 2010 11:33 am

Re: Can't get pdo to work with Postgres

Post 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?
Post Reply