Page 1 of 1

php unable to use pg functions

Posted: Tue Nov 30, 2004 12:42 pm
by maxshrdlu
Hi
I'm using PHP 4.3.9 and PostgreSQL 7.4.6 (from the linux distribution Fedora Core 3).
I'm unable to use pg_connect() method, for it's returning me false.
If I test the same php code from shell (i.e. php -f filename.php) it works.
If I test it fron web browser (http://localhost/...) it doesn't. I don't get any postgres error message, simply the returned "false" value.
Therefore it's not an issue about pg user accounts or passwords...
I made attempts with pg_hba.conf, without success.
Everything worked fine with previous versions of PHP and PG and I can't find out what is wrong now!
Help!

Max

More information would be handy

Posted: Wed Dec 01, 2004 2:51 pm
by skehoe
Can you post your connection string?