From: | "Brett W(dot) McCoy" <bmccoy(at)chapelperilous(dot)net> |
---|---|
To: | Erich <hh(at)cyberpass(dot)net> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Postgres + PHP question: username in pg_connect? |
Date: | 2000-07-19 00:09:28 |
Message-ID: | Pine.LNX.4.10.10007182005380.24077-100000@chapelperilous.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Tue, 18 Jul 2000, Erich wrote:
> I'm getting ready to switch over from MySQL to Postgres for my PHP
> application. Looking over the docs of PHP, it shows a pg_connect
> command, which doesn't accept a user name.
Sure it does:
$conn = pg_connect("dbname=orders host=localhost user=orders_admin
password=ORDERS!admin");
This also applies to pg_pconnect, for persistent conenctions.
Brett W. McCoy
http://www.chapelperilous.net
---------------------------------------------------------------------------
You can learn many things from children. How much patience you have,
for instance.
-- Franklin P. Jones
From | Date | Subject | |
---|---|---|---|
Next Message | Chris Bitmead | 2000-07-19 03:56:35 | Re: PRIMARY KEY & INHERITANCE (fwd) |
Previous Message | Erich | 2000-07-18 23:51:09 | Postgres + PHP question: username in pg_connect? |