Jump to content

Archived

This topic is now archived and is closed to further replies.

hc

PostGreSQl - Fatal error: Call to undefined function: pg_connect()

Recommended Posts

I realize this error is from the fact that PHP does not recognize that I have PostGreSQL installed, but how do I fix it? I am running Windows 2003, IIS 6, and PHP 4.4(?) I used the windows installer version. Thanks for any help.

hc

Share this post


Link to post
Share on other sites
Don't run PG, PHP, or anything useful on Windows, that should fix all your problems...


If you're deadset on windows, you need to put the .dll provided with Postgres into the extensions folder that php uses (often ext/ in your php folder) and then turn it on in the php.ini file

That should do 'er.

Share this post


Link to post
Share on other sites
Thanks. I sort of HAVE to do this on Windows. It is my only available box right now. I dont have time to redo another one for PHP, PG.

Would you any chance know the name of the DLL for PG? And How do I turn it on in the PHP.ini?

I basically copied all the .dll in the PostGresql bin folder, but it did nothing. I thought it already WAS enabled in the PHP.INI, but no dice. Any thoughts? Thanks alot

Share this post


Link to post
Share on other sites
anyone with any thoughts on getting this running. I still cant get it figured out. Thanks

HC

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.