PHP pg_connect

Поиск
Список
Период
Сортировка
От Vince
Тема PHP pg_connect
Дата
Msg-id 8731effe0707170013w41ac4fe8pd779656aae0069ee@mail.gmail.com
обсуждение исходный текст
Ответы Re: PHP pg_connect  (Hannes Dorbath <light@theendofthetunnel.de>)
Re: PHP pg_connect  (Matthew Terenzio <matt@jobsforge.com>)
Список pgsql-general
When this fails, I get a useful error print:

$dbconn = pg_connect($connection_str);

Ouput:

Warning: pg_connect() [function.pg-connect]: Unable to connect to
PostgreSQL server: FATAL: password authentication failed for user
"postgres1" in ...

How do I capture this error and handle the printing myself?  I want to
be able to know why it failed... ie password in this case.

Thanks,
Vince.

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

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: Limitations on 7.0.3?
Следующее
От: "Jason Nerothin"
Дата:
Сообщение: interaction with postgres defined types in custom c functions