Re: PostgreSQL connect error

Поиск
Список
Период
Сортировка
От John R Pierce
Тема Re: PostgreSQL connect error
Дата
Msg-id 49B615A6.4040106@hogranch.com
обсуждение исходный текст
Ответ на PostgreSQL connect error  ("devi" <devi@visolve.com>)
Список pgsql-general
devi wrote:
> 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.


wild guess says, compare your PATH and other key environment variables
(such as LD_LIBRARY_PATH) while logged in as postgres vs your other
user...  adjust the path of this other user to suit.

В списке pgsql-general по дате отправления:

Предыдущее
От: "devi"
Дата:
Сообщение: PostgreSQL connect error
Следующее
От: Josh Trutwin
Дата:
Сообщение: Re: 8.3.6 build error on Debian Lenny