Re: pg_connect fails, pgsql works - Mailing list pgsql-php

From Raymond O'Donnell
Subject Re: pg_connect fails, pgsql works
Date
Msg-id 47D58181.2080205@iol.ie
Whole thread Raw
In response to pg_connect fails, pgsql works  (John Cartwright <John.C.Cartwright@noaa.gov>)
Responses Re: pg_connect fails, pgsql works
List 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@iol.ie
---------------------------------------------------------------

pgsql-php by date:

Previous
From: John Cartwright
Date:
Subject: pg_connect fails, pgsql works
Next
From: John Cartwright
Date:
Subject: Re: pg_connect fails, pgsql works