Re: pg_connect()

From: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
To: Johann Thoyer <thoyer(at)digigram-nospam(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: pg_connect()
Date: 2003-05-25 05:43:01
Message-ID: 20030525054301.GC2265@dcc.uchile.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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)

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2003-05-25 05:57:34 Slashdot: SAP and MySQL Join Forces
Previous Message Alvaro Herrera 2003-05-25 05:37:01 Re: PLPERL