note 109028 added to function.pg-convert

From: Date: Thu, 14 Jun 2012 08:17:08 +0000
Subject: note 109028 added to function.pg-convert
Groups: php.notes 
Request: Send a blank email to php-notes+get-188595@lists.php.net to get a copy of this message
$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! ---- Server IP: 69.147.83.197 Probable Submitter: 113.161.78.141 ---- Manual Page -- http://www.php.net/manual/en/function.pg-convert.php Edit -- https://master.php.net/note/edit/109028 Del: integrated -- https://master.php.net/note/delete/109028/integrated Del: useless -- https://master.php.net/note/delete/109028/useless Del: bad code -- https://master.php.net/note/delete/109028/bad+code Del: spam -- https://master.php.net/note/delete/109028/spam Del: non-english -- https://master.php.net/note/delete/109028/non-english Del: in docs -- https://master.php.net/note/delete/109028/in+docs Del: other reasons-- https://master.php.net/note/delete/109028 Reject -- https://master.php.net/note/reject/109028 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#188595) next »