Re: Problems connecting to Postgre from PHP

From: Date: Tue, 13 May 2003 11:06:10 +0000
Subject: Re: Problems connecting to Postgre from PHP
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-27694@lists.php.net to get a copy of this message
Enable TCPIP_SOCKET = 1 on postgresql.conf Luis Sousa Steve Kershaw wrote:
Hello, I'm having problems connecting to a postgre database from my PHP code. The code I'm using is: $conn = pg_connect("host=localhost port=5432 dbname=movies ") or die("Couldn't make a connection"); And the warning message I get is: Warning: pg_connect() 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? in /var/www/html/testpostgre.php on line 11 Couldn't make a connection Am I missing anything here? Thanks in advance for your help. Steve __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com
-- Luis Sousa Especialista de Informa'tica Gabinete de Gesta~o de Informac,a~o, ext: 7837 Campus de Gambelas Universidade do Algarve, tel: 289800900

« previous php.db (#27694) next »