Jump to content

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


hc

Recommended Posts

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.
Link to comment
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
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.