diff --git a/reference/mongo/configure.xml b/reference/mongo/configure.xml index 8b3d1d83ee..f113d9d514 100644 --- a/reference/mongo/configure.xml +++ b/reference/mongo/configure.xml @@ -44,16 +44,14 @@ Github. Go to Github and click the "download" button. Then run: - + .tar.gz $ cd mongodb-mongodb-php-driver- $ phpize $ ./configure $ make all $ sudo make install - ]]> @@ -67,23 +65,19 @@ $ sudo make install Make sure the extension_dir variable is pointing to the directory containing mongo.so. The build will display where it is installing the PHP driver with output that looks something like: - + Make sure that it is the same as the PHP extension directory by runnning: - + /usr/lib/php/extensions/no-debug-non-zts-20060613 => /usr/lib/php/extensions/no-debug-non-zts-20060613 - ]]> @@ -95,11 +89,9 @@ $ php -i | grep extension_dir To load the extension on PHP startup, add a line: - + @@ -112,11 +104,9 @@ extension=mongo.so Run: - + @@ -128,11 +118,9 @@ $ sudo pecl install mongo Add the following line to your php.ini file: - + @@ -156,11 +144,9 @@ extension=mongo.so Add the following line to your php.ini file: - + @@ -179,20 +165,16 @@ extension=php_mongo.dll In most cases installing from pecl is the easiest way: If you are using XAMPP, you may be able to compile the driver with the following command: - + @@ -205,11 +187,9 @@ sudo /Applications/XAMPP/xamppfiles/bin/pecl install mongo Gentoo has a package for the PHP PECL driver called dev-php/pecl-mongo, which can be installed with: - + @@ -217,16 +197,14 @@ $ sudo emerge -va dev-php/pecl-mongo If you use PECL, you may get an error that libtool is the wrong version. Compiling from source you'll need to run aclocal and autoconf. - + @@ -240,7 +218,7 @@ $ sudo make install network connections, meaning that the driver will get "Permission denied" errors when it tries to connect to the database. If you run into this, try running: - + diff --git a/reference/mongo/exceptions.xml b/reference/mongo/exceptions.xml index 51aceb6e2a..a33b604ed6 100644 --- a/reference/mongo/exceptions.xml +++ b/reference/mongo/exceptions.xml @@ -18,7 +18,7 @@ To permanently mount the Windows shares, run: - + - + diff --git a/reference/mongo/mongoclient/construct.xml b/reference/mongo/mongoclient/construct.xml index 7422b46a13..73e02a2602 100644 --- a/reference/mongo/mongoclient/construct.xml +++ b/reference/mongo/mongoclient/construct.xml @@ -23,7 +23,7 @@ server should have the form: - + diff --git a/reference/mongo/mongoconnectionexception.xml b/reference/mongo/mongoconnectionexception.xml index fe607f3aaa..5129d82aae 100644 --- a/reference/mongo/mongoconnectionexception.xml +++ b/reference/mongo/mongoconnectionexception.xml @@ -108,7 +108,7 @@ On Red Hat variants, this can be caused by a default setting that does not allow Apache to create network connections. You can override this setting by running: - + diff --git a/reference/mongo/mongocursorexception.xml b/reference/mongo/mongocursorexception.xml index 0b0362e726..51b14acc80 100644 --- a/reference/mongo/mongocursorexception.xml +++ b/reference/mongo/mongocursorexception.xml @@ -45,7 +45,7 @@ catch (MongoCursorException $e) { ]]> This would produce output like: - + execute(new MongoCode("print('Hello, '+user+'!');", $scope)); not turn around and execute the input anyway! For example, never use the JavaScript eval function on user input: - + insert(array("scores" => $scores)); If you query for these objects using the database shell, they will look like: - + db.students.find() { "_id" : ObjectId("4b06beada9ad6390dab17c43"), "scores" : [ 98, 100, 73, 85 ] } @@ -271,7 +271,7 @@ $blog->insert($post2); From the database shell, this will look something like: - + db.blog.find() { "_id" : ObjectId("4b06c263edb87a281e09dad8"), "author" : "Adam", "content" : "This is a blog post", "comments" : [ ], "date" : "Fri Nov 20 2009 11:22:59 GMT-0500 (EST)" } @@ -292,11 +292,9 @@ $collection->insert($GLOBALS); ?> ]]> - + If you need to insert documents that may have recursive dependency, you have diff --git a/reference/mongo/updates.xml b/reference/mongo/updates.xml index 22335e904c..1d4bc2eb94 100644 --- a/reference/mongo/updates.xml +++ b/reference/mongo/updates.xml @@ -83,7 +83,7 @@ $coll->update(array("username" => "joe"), array("userId" => 12345, "info" => arr Suppose we wish to change the name of a comment's author in this document: - + Suppose we wish to change the name of a comment's author in this document: - +