Call to undefined function: pg_connect()

From: Date: Tue, 02 Sep 2003 14:01:13 +0000
Subject: Call to undefined function: pg_connect()
Groups: php.db 
Request: Send a blank email to php-db+get-30272@lists.php.net to get a copy of this message
Hi, I'm writing my first script in php to connect to a postgresql database on a Linux box with apache web server. - httpd-2.0.40-21.3.i386.rpm - php-4.2.2-17.2.i386.rpm and php-pgsql-4.2.2-17.2.i386.rpm - postgresql-7.3.4.tar.gz When I try to load the page, I get the error: Fatal error: Call to undefined function: pg_connect() in /var/www/html/tutorials/guestbook.php on line 136 On line 136, I have: pg_connect("dbname=test"); When I first got this error, I realized that I forgot to get the php-pgsql-4.2.2-17.2.i386.rpm too. After I got this rpm though, I still get the same error. Does anybody have any suggestions or ideas? Thanks so much! jenn.

« previous php.db (#30272) next »