Re: PostgreSQL connect error

From: Thomas Pundt <mlists(at)rp-online(dot)de>
To: devi <devi(at)visolve(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: PostgreSQL connect error
Date: 2009-03-10 09:23:25
Message-ID: 49B6318D.1040901@rp-online.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

devi schrieb:
> Hi Friends,
>
> I wrote a sample php program that connects to PostgreSQL DB.
>
> ==> I was able to run the PHP program from the command prompt as
> postgres user & not as anyother user
> $ php pgsql.php
>
> ==> I was not able execute the same file from the web browser. FATAL
> ERROR- undefined function pg_connect().
>
> How to resolve this issue? Please help.
>
> Thanks
> DEVI.G

Apparently your php CLI binary has support for PostgreSQL compiled in,
your web server not. Resolving this highly depends on your platform;
it might be as easy as installing an RPM and restarting the web server,
or you needing to recompile PHP with PostgreSQL support compiled in.

Ciao,
Thomas

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message devi 2009-03-10 09:34:18 Re: PostgreSQL connect error
Previous Message Nagalingam, Karthikeyan 2009-03-10 08:57:04 Re: [GENERAL] postgres deployment