A connection manager for PHP and MongoDB.
This class is used to create and manage connections. A typical use is:
<?php
$m
=
new
MongoClient();
// connect
$db
->foo;
// get the database named "foo"
?>
(PECL mongo >=1.3.0) Get the read preference for this connection
(PECL mongo >=1.3.0) Return info about all open connections
(PECL mongo >=1.3.0) String representation of this connection
(PECL mongo >=1.3.0) Gets a database collection
(PECL mongo >=1.3.0) Gets a database public
(PECL mongo >=1.3.0) Updates status for all associated hosts
(PECL mongo >=1.3.0) Lists all of the databases available.
(PECL mongo >=1.3.0) Connects to a database server
(PECL mongo >=1.3.0) Creates a new database connection object
(PECL mongo >=1.5.0) Get the write concern for this connection
Page 1 of 2