Re: php connection failure - Mailing list pgsql-general

From ourdiaspora
Subject Re: php connection failure
Date
Msg-id _1cOKIs6JLbp1g83re-TI59O8umOOQei3I2z0ZW-2wRx6Wh9lu6a8XmtSrNJvkhVY6yLd19gxOqnYJqIo679Y9ASYK57DSNE0Lm7KkFX89A=@protonmail.com
Whole thread Raw
In response to Re: php connection failure  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
On Sunday, August 8th, 2021 at 12:11 AM, Tom Lane <tgl@sss.pgh.pa.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?




pgsql-general by date:

Previous
From: ourdiaspora
Date:
Subject: Re: php connection failure
Next
From: Tom Lane
Date:
Subject: Re: php connection failure