Re: problem with connection to remote server

Поиск
Список
Период
Сортировка
От Jasen Betts
Тема Re: problem with connection to remote server
Дата
Msg-id hjuem4$7le$1@reversiblemaps.ath.cx
обсуждение исходный текст
Ответ на problem with connection to remote server  (Ireneusz Tarnowski <Ireneusz.Tarnowski@pwr.wroc.pl>)
Список pgsql-php
On 2010-01-28, Ireneusz Tarnowski <Ireneusz.Tarnowski@pwr.wroc.pl> wrote:
>> In addition to this, PHP will give some pretty useful error messages when
>> it can't connect.  If you're not seeing those, then you should adjust
>> your application logic to log them, it will make your life a lot easier.
>> If they don't clearly define the problem, post them here ... I (and
>> others like me) have seen them enough to know what they indicate.
>
> I have warning:
>
> Warning: pg_connect() [function.pg-connect]: Unable to connect to PostgreSQL server: could not connect to server: No
suchfile or directory Is the server running on host "XX.XX.XX.XX" and accepting TCP/IP connections on port 5432? in
/export/sun1000/XXXXXXX/public_html/dbtest.phpon line 10 
>
> And nothing more. Postgresql log, apache error log and php error log write nothing  about this connection.

"No such file or directory" is ENOENT but I can't see how errno is
getting set to that on an IP socket connectiom.

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

Предыдущее
От: Chris
Дата:
Сообщение: Re: Undefined function pg_connect()
Следующее
От: Jaime Casanova
Дата:
Сообщение: capturing errors