Dear Thomas,
Thank's for your reply.
This is my code for pg_connect : $db_conn = pg_connect ("host=localhost dbname=testdb");
I have made the testdb database in postgres.
I'm new in Linux, PHP and PostgreSQL, so if I use the wrong code, pls do advice me :-)
I tried to put <? dl(pgsql.so); ?> in my PHP code.
But got this error :
Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20000809/pgsqlso' -/usr/local/lib/php/extensions/no-debug-non-zts-20000809/pgsqlso:
cannot open shared object file: No such file or directory in /home/httpd/html/coba.php on line 2
The strange thing is I can't find the php.ini file.
When I installed RedHat 6.2, I got PHP3, now the php3.ini file is still in /etc/httpd.
Then, I upgraded the PHP3 to PHP4. I installed the PHP4 and I've tried to write some simple programs using PHP4, everything seems fine.
But now I can't find the php.ini file for my PHP4, I only have php.ini-dist and php.ini-optimized which their contents look like php.ini file.
It's really confusing :-)
Yes, you are right. I'm not compiling the apache module. Should I ?
Thank's for your kind attention. Your help is very much appreciated.
Sincerely,
Ay Ling