From: | Jean-Christian Imbeault <jc(at)mega-bucks(dot)co(dot)jp> |
---|---|
To: | christoph(dot)dellavalle(at)goetheanum(dot)ch, pgsql-novice <pgsql-novice(at)postgresql(dot)org> |
Subject: | Re: Accessing Postgres db from apache using PHP |
Date: | 2003-07-28 07:20:59 |
Message-ID: | 3F24CEDB.6040300@mega-bucks.co.jp |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice pgsql-php |
>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
From | Date | Subject | |
---|---|---|---|
Next Message | Philipp Ottlinger | 2003-07-28 08:41:49 | Re: Accessing Postgres db from apache using PHP |
Previous Message | christoph.dellavalle | 2003-07-28 07:10:39 | Re: Accessing Postgres db from apache using PHP |
From | Date | Subject | |
---|---|---|---|
Next Message | Philipp Ottlinger | 2003-07-28 08:41:49 | Re: Accessing Postgres db from apache using PHP |
Previous Message | christoph.dellavalle | 2003-07-28 07:10:39 | Re: Accessing Postgres db from apache using PHP |