Call to undefined function: pg_connect()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux