Fatal error: Call to undefined function: pg_connect() in .....

From: Date: Fri, 19 Jul 2002 01:37:54 +0000
Subject: Fatal error: Call to undefined function: pg_connect() in .....
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-20648@lists.php.net to get a copy of this message
Hi, I'm a newbie here. I don't know what went wrong. I've tried searching for solutions and can't find any. How come pg_connect() isn't defined? Should I include any header files or something in php? Here's my code: <HTML> <HEAD> <TITLE>Example PHP Querying</TITLE> <BODY> <?php $conn = pg_connect("dbname=phpdb"); if (!$conn) { echo "Unable to connect to database<br>"; } else print "Connected"; ?> </BODY> </HTML> I've tried installing Apache's rpm and Php's rpm. I'm running on RedHat Linux 7.3. apache_1.3.23-11.i386.rpm and php-4.1.2-7.rpm. Then, it still gives me the error message. So, I tried the gz version using apache_1.3.26.tar.gz and php-4.2.1.tar.gz. Nothing works. I've tried looking into the php.ini files, adding extension to pgsql.so. Have any of you encountered this problem before? __________________________________________________ Do You Yahoo!? Yahoo! Autos - Get free new car price quotes http://autos.yahoo.com

« previous php.db (#20648) next »