cvs: phpdoc /en/reference/mongo/functions mongo-connect.xml mongo-gridchunk-data.xml mongo-gridchunk-get.xml mongo-gridchunk-size.xml
mongo-gridfile-chunk-num.xml mongo-gridfile-chunk-size.xml mongo-gridfile-exists.xml mongo-gridfile-filename.xml mongo-gridfile-size.xml
mongo-gridfs-find.xml mongo-gridfs-list.xml

From: Date: Mon, 27 Apr 2009 15:45:17 +0000
Subject: cvs: phpdoc /en/reference/mongo/functions mongo-connect.xml mongo-gridchunk-data.xml mongo-gridchunk-get.xml mongo-gridchunk-size.xml
mongo-gridfile-chunk-num.xml mongo-gridfile-chunk-size.xml mongo-gridfile-exists.xml mongo-gridfile-filename.xml mongo-gridfile-size.xml
mongo-gridfs-find.xml mongo-gridfs-list.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-3900@lists.php.net to get a copy of this message
kristina Mon Apr 27 15:45:17 2009 UTC Removed files: /phpdoc/en/reference/mongo/functions mongo-gridchunk-data.xml mongo-gridchunk-get.xml mongo-gridchunk-size.xml mongo-gridfile-chunk-num.xml mongo-gridfile-chunk-size.xml mongo-gridfile-exists.xml mongo-gridfile-filename.xml mongo-gridfile-size.xml mongo-gridfs-find.xml mongo-gridfs-list.xml Modified files: /phpdoc/en/reference/mongo/functions mongo-connect.xml Log: modified connection params, removed dead files http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mongo/functions/mongo-connect.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc/en/reference/mongo/functions/mongo-connect.xml diff -u phpdoc/en/reference/mongo/functions/mongo-connect.xml:1.2 phpdoc/en/reference/mongo/functions/mongo-connect.xml:1.3 --- phpdoc/en/reference/mongo/functions/mongo-connect.xml:1.2 Wed Feb 25 22:50:52 2009 +++ phpdoc/en/reference/mongo/functions/mongo-connect.xml Mon Apr 27 15:45:17 2009 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry xml:id="function.mongo-connect" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> @@ -11,8 +11,12 @@ &reftitle.description; <methodsynopsis> <type>resource</type><methodname>mongo_connect</methodname> - <methodparam><type>string</type><parameter>host</parameter></methodparam> - <methodparam><type>bool</type><parameter>auto_reconnect</parameter></methodparam> + <methodparam><type>string</type><parameter>server</parameter></methodparam> + <methodparam><type>string</type><parameter>username</parameter></methodparam> + <methodparam><type>string</type><parameter>password</parameter></methodparam> + <methodparam><type>bool</type><parameter>persistent</parameter></methodparam> + <methodparam><type>bool</type><parameter>paired</parameter></methodparam> + <methodparam><type>bool</type><parameter>lazy</parameter></methodparam> </methodsynopsis> <para> Creates a new database connection object. @@ -35,12 +39,56 @@ </varlistentry> <varlistentry> <term> - <parameter>auto_reconnect</parameter> + <parameter>username</parameter> </term> <listitem> <para> - If the driver should attempt to reconnect if - the database connection is lost. + An identifier for the connection. Only necessary for + persistent, authenticated connections, otherwise it can + be set to &quot;&quot;. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term> + <parameter>password</parameter> + </term> + <listitem> + <para> + An identifier for the connection. Only necessary for + persistent, authenticated connections, otherwise it can + be set to &quot;&quot;. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term> + <parameter>persistent</parameter> + </term> + <listitem> + <para> + If the connection should be persistent. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term> + <parameter>paired</parameter> + </term> + <listitem> + <para> + If the paired database servers are being used. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term> + <parameter>lazy</parameter> + </term> + <listitem> + <para> + If persistent and lazy are set and no existing + database connection is found, do not connect. </para> </listitem> </varlistentry> @@ -75,9 +123,9 @@ <![CDATA[ <?php -$connection = mongo_connect("localhost", true); +$connection = mongo_connect("localhost", "", "", false, false, false); // or, equivalently -$connection = mongo_connect("localhost:27017", true); +$connection = mongo_connect("localhost:27017", "", "", false, false, false); ?> ]]>

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