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: 2008-03-10 18:44:17
Message-ID: 47D58181.2080205@iol.ie
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

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
---------------------------------------------------------------

In response to

Responses

Browse pgsql-php by date

  From Date Subject
Next Message John Cartwright 2008-03-10 20:06:07 Re: pg_connect fails, pgsql works
Previous Message John Cartwright 2008-03-10 17:37:51 pg_connect fails, pgsql works