Re: php + postgresql - Mailing list pgsql-general

From Tino Wildenhain
Subject Re: php + postgresql
Date
Msg-id 4889C824.7070708@wildenhain.de
Whole thread Raw
In response to Re: php + postgresql  (Aarni Ruuhimäki <aarni@kymi.com>)
Responses Re: php + postgresql
List pgsql-general
Aarni Ruuhimäki wrote:
...
> Not sure what causes this with your server but I always use something like
> this, ie first connect then do your stuff and then close the connection:
>
> require("dbconnect.inc"); // holds the $conn which is pg_connect("with
> passes")

I would avoid that in favour of using $HOME/.pgpass

http://www.postgresql.org/docs/8.1/interactive/libpq-pgpass.html

HTH
Tino


Attachment

pgsql-general by date:

Previous
From: Tino Wildenhain
Date:
Subject: Re: php + postgresql
Next
From: Steve Martin
Date:
Subject: Re: Substitute a variable in PL/PGSQL.