Re: [GENERAL] PostgreSQL connect options?

From: Daniele Orlandi <daniele(at)orlandi(dot)com>
To: Roland Roberts <roberts(at)panix(dot)com>, "pgsql-general(at)postgreSQL(dot)org" <pgsql-general(at)postgreSQL(dot)org>
Subject: Re: [GENERAL] PostgreSQL connect options?
Date: 1998-08-01 23:39:15
Message-ID: 35C3A723.6FE2C3CE@orlandi.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Roland Roberts wrote:
>
> I'm actually looking to do this from PHP (in apache). So the function
> I have is pg_connect, which is declared as
>
> int pg_connect(string host, string port, string options,
> string tty, string dbname);
>
> So, I'm going to try stuffing the user=username into the options to
> see if that does what I hope....

You may use the same syntax in PHP.

pg_connect("dbname=database user=username password=pwd authtype=password");

Bye!

--
Daniele

-------------------------------------------------------------------------------
"Oh, I've seen copies [of Linux Journal] around the terminal room at The
Labs."
(By Dennis Ritchie)
-------------------------------------------------------------------------------
Se telecom italia aggiungesse uno scatto al giorno ad ogni abbonato, dal
primo Gennaio avrebbe rubato 676.352.000.000 Lire.
-------------------------------------------------------------------------------
Daniele Orlandi - Utility Line Italia - http://www.orlandi.com
Via Mezzera 29/A - 20030 - Seveso (MI) - Italy
-------------------------------------------------------------------------------

In response to

Browse pgsql-general by date

  From Date Subject
Next Message The Hermit Hacker 1998-08-02 03:00:01 Weekly Posting: Mini-FAQ (Last Modified: Jun 7, 98)
Previous Message Peter T Mount 1998-08-01 22:48:30 Re: [ADMIN] Authentication Problems