From: | "bruce" <bedouglas(at)earthlink(dot)net> |
---|---|
To: | "'Jean-Christian Imbeault'" <jc(at)mega-bucks(dot)co(dot)jp>, <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 16:32:16 |
Message-ID: | 003b01c35525$cf5dfca0$0301a8c0@Mesa.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice pgsql-php |
hi....
I just searched my drive... I find the following files:
postgresql
postgres.conf.sample
I do not find a file --> postgres.conf
Where should it be/reside.... The information in the postgres.conf.sample
has the tcpip_socket parameter !!!
This might be the issue!!!!!!!!!!!!
Thanks
Bruce
bedouglas(at)earthlink(dot)net
-----Original Message-----
From: pgsql-novice-owner(at)postgresql(dot)org
[mailto:pgsql-novice-owner(at)postgresql(dot)org]On Behalf Of Jean-Christian
Imbeault
Sent: Monday, July 28, 2003 12:21 AM
To: christoph(dot)dellavalle(at)goetheanum(dot)ch; pgsql-novice
Subject: Re: [NOVICE] Accessing Postgres db from apache using 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
---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend
From | Date | Subject | |
---|---|---|---|
Next Message | Bruno Wolff III | 2003-07-28 16:47:04 | Re: Where's The Primary Key? |
Previous Message | bruce | 2003-07-28 16:13:27 | Re: [PHP] Accessing Postgres db from apache using PHP |
From | Date | Subject | |
---|---|---|---|
Next Message | Josh Berkus | 2003-07-28 17:11:31 | Re: Accessing Postgres db from apache using PHP |
Previous Message | bruce | 2003-07-28 16:13:27 | Re: [PHP] Accessing Postgres db from apache using PHP |