Re: php + postgresql: undefined function pg_connect() ...?

From: Date: Fri, 16 Jun 2000 01:57:50 +0000
Subject: Re: php + postgresql: undefined function pg_connect() ...?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-2038@lists.php.net to get a copy of this message
On 15 Jun, Michael Teter wrote: > hi. I've got an error that I can't figure out. > > "Fatal error: Call to unsupported or undefined function pg_connect() in > /home/httpd/html/query.php3 on line 8" > > here's the code for line 8: > $db_conn = pg_connect ("", "", "", "", > "testdb"); > > I know my database works (from using interactive sql). I know php3 in > general works, as I've done a couple of test programs. > > I did go into my php3.ini file and turn on extension=pgsql.so. then I > restarted everything. > > any clues? > > many thanks > michael teter > You need to compile Postgres support into PHP. Use phpinfo() to check whether you have that functionality in your PHP. Cheers -- David Robley | WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet | http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA

« previous php.general (#2038) next »