Re: pg_connect fails, pgsql works
- From: Raymond O'Donnell <rod(at)iol(dot)ie>
- To: John Cartwright <John(dot)C(dot)Cartwright(at)noaa(dot)gov>
- Cc: pgsql-php(at)postgresql(dot)org
- Subject: Re: pg_connect fails, pgsql works
- Date: Mon, 10 Mar 2008 18:44:17 +0000
- Message-id: <47D58181.2080205@iol.ie> <text/plain>
On 10/03/2008 17:37, John Cartwright wrote:
$con = pg_connect("host='postgres1.ngdc.noaa.gov' port=5432
sslmode='allow' user='test' password='mypassword' dbname='test'")
I don't think you need to quote the host, uid, etc - try it without the
single quotes, e.g.
"host=postgres1.ngdc.noaa.gov port=5432 sslmode=allow user=test [....]"
HTH,
Ray.
---------------------------------------------------------------
Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
rod(at)iol(dot)ie
---------------------------------------------------------------
Home |
Main Index |
Thread Index