Re: Accessing Postgres db from apache using PHP

Поиск
Список
Период
Сортировка
От Jean-Christian Imbeault
Тема Re: Accessing Postgres db from apache using PHP
Дата
Msg-id 3F24CEDB.6040300@mega-bucks.co.jp
обсуждение исходный текст
Ответ на Re: Accessing Postgres db from apache using PHP  (christoph.dellavalle@goetheanum.ch)
Ответы Re: Accessing Postgres db from apache using PHP  ("bruce" <bedouglas@earthlink.net>)
Список pgsql-novice
>i then do a:
>    $tmp = "host=localhost dbname=gforge user=gforge
>password=gforge";
>    $conn = @pg_connect($tmp);


Just jumping in here but don't you need to specify the port?

$conn = pg_connect("host=localhost port=5432 dbname=gforge user=gforge");

Also, don't use the @, that way you can see any useful error messages
that are displayed :)

Oh, and you did change the conf file to let postgres use TCP/IP?

tcpip_socket = true
port=5432

Jc



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

Предыдущее
От: christoph.dellavalle@goetheanum.ch
Дата:
Сообщение: Re: Accessing Postgres db from apache using PHP
Следующее
От: "bruce"
Дата:
Сообщение: Re: Accessing Postgres db from apache using PHP