Connecting to mongodb using PDO driver

user1063715 picture user1063715 · Nov 24, 2011 · Viewed 21.4k times · Source

Will I be able to connect to this database using php's php_mongo.dll driver?

If so, could you please provide some sample code as I was not able to get it in any forum?

Answer

Gates VP picture Gates VP · Nov 26, 2011

MongoDB requires its own driver.

In your case, the PHP driver is located here: http://php.net/manual/en/book.mongo.php

The instructions for installing it are on that page. There is also some sample code.