Re: PHP Warning: pg_connect(): Unable to connect to PostgreSQL server: could not connect to server: - Mailing list pgsql-general

From Andy Anderson
Subject Re: PHP Warning: pg_connect(): Unable to connect to PostgreSQL server: could not connect to server:
Date
Msg-id 81591F02-0481-4B90-AF97-A7925BD6E628@amherst.edu
Whole thread Raw
In response to Re: PHP Warning: pg_connect(): Unable to connect to PostgreSQL server: could not connect to server:  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Abdus Samad Ansari <ansarias@wbpcb.gov.in> writes:
> I have setup PHP/Postgres and is running fine upto document root
> i.e. /var/www/html, but when i am calling it through a cgi-bin php
> file
> it is giving log error as :
> [error] [client 127.0.0.1] PHP Warning:  pg_connect(): Unable to
> connect
> to PostgreSQL server: could not connect to server: \x04\xe6\xe3\xbfPF;

I don't know how the error message is structured, but if
"\x04\xe6\xe3\xbfP" refers to the host, perhaps the connection string
you are handing to pg_connect() is trashed. What is the actual code
you are using for this call?

-- Andy


pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: PHP Warning: pg_connect(): Unable to connect to PostgreSQL server: could not connect to server:
Next
From: "Merlin Moncure"
Date:
Subject: Re: How to create a function with multiple RefCursor OUT parameters