On Mon, 31 Mar 2003, Reynard Hilman wrote:
>
> Hi everyone,
>
> Is it possible to connect to a postgres server without TCP/IP connection
> from a php script (ie: using unix domain socket) ?
> If php cannot do this, do I have to use libpq C library? or is there any
> other way to do it?
On the same box, yes. Just don't include a host entry in your connect
function:
$conn = pg_connect("user=bubba dbname=bo_bob_brain");
should work.