note 109028 rejected from function.pg-convert by danbrown

From: Date: Thu, 14 Jun 2012 15:25:07 +0000
Subject: note 109028 rejected from function.pg-convert by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-188610@lists.php.net to get a copy of this message
Note Submitter: trandai_th at yahoo dot com ---- $dbconn =pg_connect("host=localhost port=5432 dbname=qlbv user=postgres password=123456") or die("can't connect db"); result of $dbconn is false; I had config # "local" is for Unix domain socket connections only local all all md5 # IPv4 local connections: host all all 127.0.0.1/32 md5 # IPv6 local connections: host all all ::1/128 md5 # IPv4 internet connections: host all all 0.0.0.0/0 md5 # - Connection Settings - listen_addresses='*' #listen_addresses = 'localhost' # what IP address(es) to listen on; # comma-separated list of addresses; # defaults to 'localhost', '*' = all # (change requires restart) port = 5432 # (change requires restart) add 2 row in iptables -A -INPUT -m state –state NEW -m tcp -p tcp –dport 80 -j ACCEP -A -INPUT -m state –state NEW -m tcp -p tcp –dport 5432 -j ACCEP I setup webserver in centos result of $dbconn is false; Can you help me? thanks!

« previous php.notes (#188610) next »