Jump to content

Recommended Posts

Hello friends -

 

My brain is in traction on this one.  I'm having problems connecting to postgres via php.  Error message = 'undefined function' when I make the call to pg_connect.  I have modified the php.ini file to enable the extension=php_pgsql.dll line.  The .dll in question exists in both windows and the defined php extensions directory.  I have confidence that the php.ini file in question is the one in use by Apache (if I rename, everything bombs).

 

Here is the NASTY part; if I try phpInfo() or

 

if (extension_loaded('pgsql')){

echo "pg sql is loaded";

}

else{

echo "pg sql is NOT loaded";

}

 

I get DIFFERENT results on repeated browser reloads.  That is, sometimes I get the 'pg sql is loaded' echo out.  I reload a few times, I get the 'pg sql is NOT loaded message'. 

 

Apache reports nothing unusual, except for the undefined function complaint when the library is unavailable.

 

Any insight is appreciated!

 

-pD

 

Link to comment
https://forums.phpfreaks.com/topic/55467-varying-availability-of-libraries/
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.