From: Rod Taylor <rbt@rbt.ca>
To: bedouglas@earthlink.net
Cc: pgsql-novice@postgresql.org
Cc: pgsql-php@postgresql.org
Subject: Re: [PHP] Accessing Postgres db from apache using PHP
Date: 27 Jul 2003 22:24:08 -0400
Message-ID: <1059359048.8643.13.camel@jester> (raw)
In-Reply-To: <001501c354a3$9aee0b40$0301a8c0@Mesa.com>
References: <001501c354a3$9aee0b40$0301a8c0@Mesa.com>
> i then do a:
> $tmp = "host=localhost dbname=gforge user=gforge password=gforge";
> $conn = @pg_connect($tmp);
Since host=localhost, the client will attempt to connect to the server
on 127.0.0.1. By default, TCPIP access is not enabled. To do so, see
postgresql.conf, make the change to the tcpip variable, and HUP the
server.
However, if you leave host=<blank>, the client will attempt to connect
to the server via the local domain socket which is both enabled by
default and should be a touch faster due to more efficient data
transmission.
Attachments:
signature.asc (application/pgp-signature, 186B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: rbt@rbt.ca, bedouglas@earthlink.net, pgsql-novice@postgresql.org
Subject: Re: [PHP] Accessing Postgres db from apache using PHP
In-Reply-To: <1059359048.8643.13.camel@jester>
References: <001501c354a3$9aee0b40$0301a8c0@Mesa.com> <1059359048.8643.13.camel@jester>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox