I have installed php5, apache2 and postgresql supported on centos5
i try to connect to my database using pg_connect as
$constr="host=localhost port=5432 dbname=$DataBaseName user=$UserName password=$UserPassword"; $con = pg_connect($constr);
I can running through php(in shell mode) command is success(value of $con not false) but $con is aways return false with run through apache (open website).
Any one help me what is wrong