Access PostgreSQL from PHP

Reply

Join Date: Dec 2004
Posts: 1
Reputation: giraffe is an unknown quantity at this point 
Solved Threads: 0
giraffe giraffe is offline Offline
Newbie Poster

Access PostgreSQL from PHP

 
0
  #1
Dec 11th, 2004
Hi.

I installed postgreSQL-7.4.6, apache2 and PHP-4.3.9 on Fedora Core 2.

I wanna access postgreSQL from php, but got such an error:
Fatal error: Call to undefined function: pg_connect().

And then I try to reinstall php:
./configure --with-pgsql=[pgsql DIR]
make; make install;
cp php.ini-dist [php DIR]

set extensions directory and extension point to pgsql.so
extension_dir = php/extensions/
extesion = pgsql.so

But I still failed to remove Fatal error.

are there any suggestions?

Thank you very much.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC