svn: /phpdoc/en/trunk/reference/pgsql/functions/ pg-connect.xml

From: Date: Wed, 20 Oct 2010 09:22:18 +0000
Subject: svn: /phpdoc/en/trunk/reference/pgsql/functions/ pg-connect.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-7270@lists.php.net to get a copy of this message
kalle Wed, 20 Oct 2010 09:22:18 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=304555 Log: Fixed bug #52116 (pg_connect - how to use options) Bug: http://bugs.php.net/52116 (Open) pg_connect - how to use options Changed paths: U phpdoc/en/trunk/reference/pgsql/functions/pg-connect.xml Modified: phpdoc/en/trunk/reference/pgsql/functions/pg-connect.xml =================================================================== --- phpdoc/en/trunk/reference/pgsql/functions/pg-connect.xml 2010-10-20 09:22:09 UTC (rev 304554) +++ phpdoc/en/trunk/reference/pgsql/functions/pg-connect.xml 2010-10-20 09:22:18 UTC (rev 304555) @@ -60,6 +60,10 @@ <parameter>service</parameter>. Which of these arguments exist depends on your PostgreSQL version. </para> + <para> + The <parameter>options</parameter> parameter can be used to set command line parameters + to be invoked by the server. + </para> </listitem> </varlistentry> <varlistentry> @@ -103,6 +107,9 @@ $conn_string = "host=sheep port=5432 dbname=test user=lamb password=bar"; $dbconn4 = pg_connect($conn_string); //connect to a database named "test" on the host "sheep" with a username and password + +$dbconn5 = pg_connect("host=localhost options='--client_encoding=UTF8'"); +//connect to a database on "localhost" and set the command line parameter which tells the encoding is in UTF-8 ?> ]]> </programlisting>

« previous php.doc.cvs (#7270) next »