Re: cant conect to dynamic host-URL

From: "Andy Shellam (Mailing Lists)" <andy(dot)shellam-lists(at)mailnetwork(dot)co(dot)uk>
To: Dirk Becker <becker(at)adocom(dot)de>
Cc: pgsql-php(at)postgresql(dot)org
Subject: Re: cant conect to dynamic host-URL
Date: 2006-11-02 09:47:27
Message-ID: 4549BEAF.9010609@mailnetwork.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

> Could it be that pg_connect cant connect through real URLs ?

The only difference with a dynamic URL is that the DNS expiry
(time-to-cache) is much lower (usually 5 minutes as opposed to a day.)
DNS clients don't see it any differently.
I would try a newer PHP version (latest in the 4 series is 4.4.4).

I must admit I've never had a problem with pg_connect not seeing a
domain the server itself can.

Is the PostgreSQL server on the same box as PHP? Have you tried
connecting through domain sockets instead?

Andy.

Dirk Becker wrote:
> Andy Shellam (Mailing Lists) wrote:
>> Connects fine from my box. How about firewalls? We had a weird case
>> at work a while back where a router somewhere along the line was
>> blocking all connections until it was ping'd - then after it received
>> a ping, it'd keep the connection open for 20 minutes or so, then
>> start blocking again. Turned out to be faulty!
>>
>> One thing I would check is the domain name lookup. Make sure your
>> DNS servers are properly configured and respond timely (within 2
>> seconds.) from your client for a minute and see if any time out
>> and/or fail.
>>
>> Andy.
>
> Thanks, but the error only apears while using php / pg_connect()
> With pgsql i can connect through the dynamic url without problems :/
> Could it be that pg_connect cant connect through real URLs ?
>
> I run php 4.3.3 and PostgreSQL 8.1.0
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: explain analyze is your friend
>
> !DSPAM:37,4549ab3440414261817806!
>
>

In response to

Responses

Browse pgsql-php by date

  From Date Subject
Next Message Dirk Becker 2006-11-02 11:41:16 Re: cant conect to dynamic host-URL
Previous Message Dirk Becker 2006-11-02 08:23:56 Re: cant conect to dynamic host-URL