pg_connect = can't find server

wxdqz

New Member
The Problem:

Calling pg_connect("host=x port=y dbname=z user=a password=b")

Returns one of the the following:

In IE: Cannot find server or DNS Error

In Lynx: Alert!: Unexpected network read error; connection aborted

Considerations:

1) PostGress is installed (psql works just dandy from the command line on the same server)

2) PHP can find the pgsql library (if I skip the connection function, PHP recognises pg_Exec() as a PostGress function in the returned error message)

3) pg_connect worked fine before I reinstalled php and apache

Comments:

I mean, shouldn't I least get a page with an error message on it? No matter what other code appears in the script, if i try to connect to a db nothing but the generic error mentioned above is returned.

My respect and admiration to you amazing people that take the time to help hacks like me.

Todd Lekan
Director of Internet Services
Madison Newspapers Inc.
<!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e -->
 
Back
Top