note 110680 modified in function.pg-connect by googleguy
| From: | googleguy@php.net | Date: | Thu, 22 Nov 2012 16:27:45 +0000 |
| Subject: | note 110680 modified in function.pg-connect by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-192080@lists.php.net to get a copy of this message | ||
[Edit by moderator]
If you use PgBouncer with Unix socket
<?php
$dbconn = pg_connect(\"host=/var/run/postgresql port=6432 dbname=mary\");
?>
if your pgbouncer.ini look likes this
;listen_port = 6432
unix_socket_dir = /var/run/postgresql
--was--
If you use PgBouncer with unix sock
<?php
$dbconn = pg_connect("host=/var/run/postgresql port=6432 dbname=mary");
?>
if your pgbouncer.ini look likes this
;listen_port = 6432
unix_socket_dir = /var/run/postgresql
http://php.net/manual/en/function.pg-connect.php