From: | Rod Taylor <rbt(at)rbt(dot)ca> |
---|---|
To: | bedouglas(at)earthlink(dot)net |
Cc: | pgsql-novice(at)postgresql(dot)org, pgsql-php(at)postgresql(dot)org |
Subject: | Re: [PHP] Accessing Postgres db from apache using PHP |
Date: | 2003-07-28 02:24:08 |
Message-ID: | 1059359048.8643.13.camel@jester |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice pgsql-php |
> 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.
From | Date | Subject | |
---|---|---|---|
Next Message | Nabil Sayegh | 2003-07-28 02:42:17 | Re: Where's The Primary Key? |
Previous Message | brew | 2003-07-28 02:10:09 | Re: Accessing Postgres db from apache using PHP |
From | Date | Subject | |
---|---|---|---|
Next Message | A.Bhuvaneswaran | 2003-07-28 03:52:10 | Re: Accessing Postgres db from apache using PHP |
Previous Message | brew | 2003-07-28 02:10:09 | Re: Accessing Postgres db from apache using PHP |