Re: pg_connect() - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: pg_connect()
Date
Msg-id 20030525054301.GC2265@dcc.uchile.cl
Whole thread Raw
In response to pg_connect()  ("Johann Thoyer" <thoyer@digigram-nospam.com>)
List pgsql-general
On Fri, May 23, 2003 at 05:09:32PM +0200, Johann Thoyer wrote:

> Apache and php runs very well (i created a file "test.php" with the
> instruction phpinfo() and the information appears very well when i load my
> page in my browser, in particular i see the configure command of php
> and --with-apxs --with-pgsql=shared take part of it).
>
> In an other php file, i try to connect a postgres database with the command
> pg_connect.
> And it appears in my browser this error message:
> Fatal error: Call to undefined function: pg_connect() ...

You are probably missing one line in php.ini:
extension = pgsql.so

_or_ it's failing to load that shared library for some reason.  Look in
Apache's error_log, maybe there's something there.

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"Como puedes confiar en algo que pagas y que no ves,
y no confiar en algo que te dan y te lo muestran?" (German Poo)

pgsql-general by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: PLPERL
Next
From: Tom Lane
Date:
Subject: Slashdot: SAP and MySQL Join Forces