| От | George.T.Essig@stls.frb.org |
|---|---|
| Тема | Re: PostgreSQL + PHP 4.2x buggy with Apache? |
| Дата | |
| Msg-id | 20020806185126.14499475C32@postgresql.org обсуждение исходный текст |
| Ответ на | PostgreSQL + PHP 4.2x buggy with Apache? (jfo123@hotmail.com (Axier)) |
| Список | pgsql-general |
It sounds like you have a problem with the persistent PostgreSQL
connections used by PHP and Apache. Change pg_pconnect to pg_connect and
restart Apache to close the existing persistent connections. My experience
is that pg_pconnect is not as robust as pg_connect and not worth the
increase in speed.
George Essig
> After last night I cannot connect via the webinterface anylonger. The
> webserver still answers on requests and I can logon via psql or
> pgAdmin and issue commands there, but no way to connect via my
> PHP-script.
>
> the line that hangs is the pg_connect:
> $link = pg_pconnect("dbname=$Database user=$DbId password=$DbPassword
> host=localhost");
>
> $query = "COPY test FROM stdin;";
> $sth = pg_query ($link, $query);
>
> regards, Axier
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера