Re: pg_connect fails, pgsql works

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

On 10/03/2008 17:37, John Cartwright wrote:

$con = pg_connect("host='' 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.

" port=5432 sslmode=allow user=test [....]"



Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland

Sent via pgsql-php mailing list (pgsql-php@xxxxxxxxxxxxxx)
To make changes to your subscription:

[Postgresql General]     [Postgresql Admin]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Backpacking]     [Postgresql Jobs]

Add to Google Powered by Linux