Re: [GENERAL] PostgreSQL connect options?

Поиск
Список
Период
Сортировка
От Daniele Orlandi
Тема Re: [GENERAL] PostgreSQL connect options?
Дата
Msg-id 35C3A723.6FE2C3CE@orlandi.com
обсуждение исходный текст
Ответ на Re: [GENERAL] PostgreSQL connect options?  (Maarten Boekhold <maartenb@dutepp0.et.tudelft.nl>)
Список 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
-------------------------------------------------------------------------------

В списке pgsql-general по дате отправления:

Предыдущее
От: Peter T Mount
Дата:
Сообщение: Re: [ADMIN] Authentication Problems
Следующее
От: The Hermit Hacker
Дата:
Сообщение: Weekly Posting: Mini-FAQ (Last Modified: Jun 7, 98)