note 93837 added to function.pg-connect

From: Date: Fri, 02 Oct 2009 13:51:34 +0000
Subject: note 93837 added to function.pg-connect
Groups: php.notes 
Request: Send a blank email to php-notes+get-161219@lists.php.net to get a copy of this message
It's possible connect to a PostgreSQL database via Unix socket using the pg_connect() function by the following two ways: 1) Using the socket path: <?php $conn = pg_connect('host=/var/run/postgresql user=username dbname=databasename'); ?> 2) Omitting the host name/path: <?php $conn = pg_connect('user=username dbname=databasename'); ?> Note: in this case (omitting the host value), the default socket path will be used. ---- Server IP: 187.16.23.134 Probable Submitter: 189.26.5.189 ---- Manual Page -- http://www.php.net/manual/en/function.pg-connect.php Edit -- https://master.php.net/note/edit/93837 Del: integrated -- https://master.php.net/note/delete/93837/integrated Del: useless -- https://master.php.net/note/delete/93837/useless Del: bad code -- https://master.php.net/note/delete/93837/bad+code Del: spam -- https://master.php.net/note/delete/93837/spam Del: non-english -- https://master.php.net/note/delete/93837/non-english Del: in docs -- https://master.php.net/note/delete/93837/in+docs Del: other reasons-- https://master.php.net/note/delete/93837 Reject -- https://master.php.net/note/reject/93837 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#161219) next »