Is the postmaster running and accepting TCP / IP (with -i) connection at'localhost 'on port '5432'? in / path / to / file.php on line 20.
Il est possible de se connecter avec la commande suivante: $conn = pg_Connect( "host=monHote port=monPort tty=monTTY options=myOptions dbname=myDB user=myUser password=myPassword");