Re: php + postgresql

From: Tino Wildenhain <tino(at)wildenhain(dot)de>
To: aarni(at)kymi(dot)com
Cc: pgsql-general(at)postgresql(dot)org, admin <mick(at)mjhall(dot)org>
Subject: Re: php + postgresql
Date: 2008-07-25 12:33:40
Message-ID: 4889C824.7070708@wildenhain.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Woody Woodring 2008-07-25 12:52:52 Do text columns create pg_toast tables?
Previous Message Tino Wildenhain 2008-07-25 12:31:09 Re: php + postgresql