|
Making a ConnectionTo connect to the database server, use one of the following:
<?php You do not have to explicitly disconnect from the database. The driver uses persistent connections and will re-use already established connections. See AlsoThe chapter on connecting covers different types of connections. The API documentation on the MongoClient class and MongoClient::__construct give a comprehensive look at all possible options with a number of examples. |