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

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.[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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.