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
-------------------------------------------------------------------------------

Reply via email to