Connecting to PostgreSQL from PHP Script
I have a postgresql database set up, which I can manipulate via psql. I wish to connect to this from a PHP script I have used previously on other servers. However on my new server (Suse 8.1) I cannot connect to the database from a webscript.
In fact, I can't connect to the database from psql if I specify the host parameter as the machines IP address. The error message from psql and the webpage both mention that it might not be running on the IP address and/or port I think they should be, but I'm sure they are.....
Any ideas - I'm completely stuck!
Thanks in advance!
Paul
|