[PHP-DB] Call to undefined function: pg_connect()

2003-09-02 Thread Jennifer Liu
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



[PHP-DB] Call to undefined function: pg_connect()

2003-09-02 Thread Jennifer Liu
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



Re: [PHP-DB] Call to undefined function: pg_connect()

2003-09-02 Thread Tyler Lane
run phpinfo() and verify that postgresql support is indeed there. 
Is the version of php-pgsql you installed been compiled for 7.3.4?

If it was compiled for postgresql 7.2 then it won't work with 7.3.x
libraries.

HTH

On Tue, 2003-09-02 at 07:31, Jennifer Liu wrote:
 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.
-- 
Tyler Lane [EMAIL PROTECTED]
Lyrical Communications


signature.asc
Description: This is a digitally signed message part


[PHP-DB] Call to undefined function: pg_connect(

2001-01-25 Thread Sean Weissensee

After I had to rebuild my linux server I started getting this
error while trying to connect to postgres.

This worked fine before, I first installed the stock RPM`s i.e PHP and
postgres
from the Redhat 6.2 Distribution. After getting this error I thought now is
a good opportunity to
upgrade to PHP4, I compiled php with pgsql support but still no luck ?


Sean



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]