| От | Thomas Pundt |
|---|---|
| Тема | Re: PostgreSQL connect error |
| Дата | |
| Msg-id | 49B6318D.1040901@rp-online.de обсуждение исходный текст |
| Ответ на | PostgreSQL connect error ("devi" <devi@visolve.com>) |
| Список | 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
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера