Re: php connection failure

From: ourdiaspora <ourdiaspora(at)protonmail(dot)com>
To:
Cc: "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: php connection failure
Date: 2021-08-07 23:18:29
Message-ID: _1cOKIs6JLbp1g83re-TI59O8umOOQei3I2z0ZW-2wRx6Wh9lu6a8XmtSrNJvkhVY6yLd19gxOqnYJqIo679Y9ASYK57DSNE0Lm7KkFX89A=@protonmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sunday, August 8th, 2021 at 12:11 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

>
> If php is trying to connect to something else, like say the
>
> machine's external IP address, that could be your issue.

Excuse the ignorance, but if the instruction in the php file is:
"
...$dbconn = pg_connect("dbname=cpacweb user=cpaca host=localhost")...
"
why should php try to connect to anything except 'localhost', as instructed?

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2021-08-07 23:26:37 Re: php connection failure
Previous Message ourdiaspora 2021-08-07 23:11:17 Re: php connection failure