PHP & Postgresql: Call to undefined function: pg_connect()

Richard Welty rwelty at averillpark.net
Wed Feb 11 04:32:09 UTC 2004


On Tue, 10 Feb 2004 20:14:08 -0800 Gordon Moyer <gmoyer at aracnet.com> wrote:
> I upgraded from 7.2 to Fedora about two months ago.  I am current on update
> packages.

> I'm trying to run postgresql with PHP and am getting error:  Call to
> undefined function: pg_connect().

> >From phpinfo(): '--with-pgsql=shared'.

> What's wrong??

i'd start out by looking in /etc/php.ini and making sure that the
appropate lines for the postgresql libs are uncommented. this is
a common glitch with php upgrades; the new php.ini gets
installed and by default, postgresql is not enabled.

richard
-- 
Richard Welty                                         rwelty at averillpark.net
Averill Park Networking                                         518-573-7592
    Java, PHP, PostgreSQL, Unix, Linux, IP Network Engineering, Security





More information about the users mailing list