Search Postgresql Archives

Re: PHP Warning: pg_connect(): Unable to connect to PostgreSQL server: could not connect to server:

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

 



Abdus Samad Ansari <ansarias@xxxxxxxxxxxx> 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



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux