i am getting the following error message -
Warning: Unable to connect to PostgreSQL server: could not connect to server: Connection refused Is the server running on host localhost and accepting TCP/IP connections on port 5432?
this is my command -
$result = pg_pconnect("host=localhost dbname=db1 user=user1 password=password1");
postgres is running and i can connect to the database db1 ok (manually). the user/password combination user1/password1 exist ok
i think my host is localhost (i am running apache etc. off my local machine.) i do not know how ot check which port postgres is running off
any ideas???
thanks