passionlessDrone Posted June 13, 2007 Share Posted June 13, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/55467-varying-availability-of-libraries/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.