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-11 17:02:24
Message-ID: N0wXzQROwC6fXhI1USj0_Fo4SOn_gpsCRSl4a2J3Wz6ZDbA6MIIY5kAAQZFoafItjLG-MAdKDnZBtyCYvdW7qn0rfkmyAuX_16MqiZKBO1g=@protonmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On Wednesday, August 11th, 2021 at 3:09 PM, Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com> wrote:

>
> Is the Web server/PHP app on the same machine as the Postgres server?
>

All programs about this question are installed on a single computer; the intention is to test and learn first on a local machine.

> If it is on the same machine what happens if you do?:
>
> $dbconn = pg_connect("dbname=cpacweb user=cpaca") or die("Could not
>
> connect");
>

Am happy to report that connection looks successful, because the php web page now reports:

"
Connection status ok
"

Thank you all very much for the help. Hope that other novices benefit too! :)

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Matthias Apitz 2021-08-11 17:09:30 Re: (13.1) pg_basebackups ./. pg_verifybackup
Previous Message ourdiaspora 2021-08-11 16:47:46 Re: php connection failure