Re: [NOVICE] Accessing Postgres db from apache using PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



> 	$tmp = "host=localhost dbname=gforge user=gforge password=gforge";
> 	$conn = @pg_connect($tmp);
> 
> at this point $conn is not set... it should be a resouce if I've connect to
> the DB..!!!!!!!

Did you uncomment the below line in /etc/php.ini?
;extension=pgsql.so
If not do it and restart your httpd. Hope it helps.

regards,
bhuvaneswaran



[Index of Archives]     [Postgresql General]     [Postgresql Admin]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Backpacking]     [Postgresql Jobs]

  Powered by Linux