From bcbd2e8b37606d377f9afaef5ca95a7418a7d6a6 Mon Sep 17 00:00:00 2001 From: Philip Olson Date: Wed, 25 Feb 2009 22:33:54 +0000 Subject: [PATCH] Whitespace git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@276454 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/mongo/book.xml | 17 +++---- reference/mongo/configure.xml | 94 +++++++++++++++++------------------ reference/mongo/constants.xml | 9 ++-- reference/mongo/examples.xml | 8 +-- reference/mongo/ini.xml | 78 ++++++++++++++--------------- reference/mongo/setup.xml | 6 +-- 6 files changed, 105 insertions(+), 107 deletions(-) diff --git a/reference/mongo/book.xml b/reference/mongo/book.xml index 9d5db53e51..b7962ac722 100644 --- a/reference/mongo/book.xml +++ b/reference/mongo/book.xml @@ -1,5 +1,5 @@ - + Mongo @@ -8,16 +8,15 @@ &reftitle.intro; - These functions allow PHP to interact with Mongo database servers. - It is highly recommended that you not use these functions. They are - wrapped by an object-oriented interface, which has a much nicer and - well-documented API. + These functions allow PHP to interact with Mongo database servers. + It is highly recommended that you not use these functions. They are + wrapped by an object-oriented interface, which has a much nicer and + well-documented API. - - More information and downloads for Mongo can be found at - &url.mongo;. PHP-specific information can be found at the - PHP Language Center. + More information and downloads for Mongo can be found at + &url.mongo;. PHP-specific information can be found at the + PHP Language Center. diff --git a/reference/mongo/configure.xml b/reference/mongo/configure.xml index 2c087b0663..78a36ac0f4 100644 --- a/reference/mongo/configure.xml +++ b/reference/mongo/configure.xml @@ -1,24 +1,24 @@ - +
&reftitle.install; - To get the source: - - $ cvs -d :pserver:cvsread@cvs.php.net:/repository checkout pecl/mongo - # password: phpfi - + To get the source: + + $ cvs -d :pserver:cvsread@cvs.php.net:/repository checkout pecl/mongo + # password: phpfi + - To build, use: - - $ cd pecl/mongo - $ ./configure --enable-mongo - $ make - + To build, use: + + $ cd pecl/mongo + $ ./configure --enable-mongo + $ make + Options used by configure @@ -31,58 +31,58 @@ - --with-mongodb=/path/to/mongodb - /usr/local - Path to local mongodb install + --with-mongodb=/path/to/mongodb + /usr/local + Path to local mongodb install - --with-boost=/path/to/boost/libs - /usr/lib/ - Path to boost libraries + --with-boost=/path/to/boost/libs + /usr/lib/ + Path to boost libraries - --enable-64 - no - Compile for 64-bit architecture - + --enable-64 + no + Compile for 64-bit architecture +
- Note for Mac OS X users: Web Sharing uses 64-bit PHP, however, the command line PHP uses 32-bit. - Therefore, you have to use --enable-64 to force command-line PHP to build an Apache-compliant - PHP extension. + Note for Mac OS X users: Web Sharing uses 64-bit PHP, however, the command line PHP uses 32-bit. + Therefore, you have to use --enable-64 to force command-line PHP to build an Apache-compliant + PHP extension. - To install: - - $ sudo cp modules/mongo.so /path/to/extension_dir - $ sudo cp src/php/* /path/to/php/includes/mongo/ - + To install: + + $ sudo cp modules/mongo.so /path/to/extension_dir + $ sudo cp src/php/* /path/to/php/includes/mongo/ + - php.ini settings: - To load this extension on startup, add a line: - - extension=mongo.so - + php.ini settings: + To load this extension on startup, add a line: + + extension=mongo.so + - You should also add some default settings: - - [mongo] - ; Default host for mongo connection - mongo.default_host = localhost - - ; Default port for mongo database - mongo.default_port = 27017 - - ; If the driver should reconnect to mongo - mongo.auto_reconnect = true - + You should also add some default settings: + + [mongo] + ; Default host for mongo connection + mongo.default_host = localhost + + ; Default port for mongo database + mongo.default_port = 27017 + + ; If the driver should reconnect to mongo + mongo.auto_reconnect = true +
diff --git a/reference/mongo/constants.xml b/reference/mongo/constants.xml index e08cba1703..d84e4bedda 100644 --- a/reference/mongo/constants.xml +++ b/reference/mongo/constants.xml @@ -1,5 +1,5 @@ - + &reftitle.constants; @@ -59,26 +59,25 @@ MONGO_PROFILING_OFF - Turn off profiling. + Turn off profiling. MONGO_PROFILING_SLOW - Only keep track of slow operations. + Only keep track of slow operations. MONGO_PROFILING_ON - Keep track of all operations. + Keep track of all operations. - + &reftitle.examples; - This example shows how to connect, - insert objects, query for objects, iterate through - query results, and disconnect from a Mongo database. + This example shows how to connect, + insert objects, query for objects, iterate through + query results, and disconnect from a Mongo database. Mongo Example diff --git a/reference/mongo/ini.xml b/reference/mongo/ini.xml index 21411d37e0..d7dbfa3f6c 100644 --- a/reference/mongo/ini.xml +++ b/reference/mongo/ini.xml @@ -1,5 +1,5 @@ - +
&reftitle.runtime; &extension.runtime; @@ -35,51 +35,51 @@ &ini.php.constants; - + -&ini.descriptions.title; + &ini.descriptions.title; - - - - - mongo.default_host - string - - - + + + + + mongo.default_host + string + + + Default hostname. "localhost" is recommended. - - - + + + - - - mongo.default_port - string - - - - The default TCP port number to use when connecting to - the database server if no other port is specified. The - database's default is 27017. - - - + + + mongo.default_port + string + + + + The default TCP port number to use when connecting to + the database server if no other port is specified. The + database's default is 27017. + + + - - - mongo.auto_reconnect - bool - - - + + + mongo.auto_reconnect + bool + + + Whether to reconnect to the database if the connection is lost. - - - - + + + +
diff --git a/reference/mongo/setup.xml b/reference/mongo/setup.xml index 7dbe21ef83..025e5140b6 100644 --- a/reference/mongo/setup.xml +++ b/reference/mongo/setup.xml @@ -1,5 +1,5 @@ - + &reftitle.setup; @@ -8,8 +8,8 @@ &reftitle.required; - Requires PHP 5.0 and up. - You can download Mongo from &url.mongo;. + Requires PHP 5.0 and up. + You can download Mongo from &url.mongo;.