Connecting to mongodb using PDO driver
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? 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. I think that PDO is only for relational databases. There's no PDO driver for mongodb. There is list of databases which you can use with PDO driver: http://php.net/manual/en/pdo.drivers.php MongoDb is not among them. 来源: https:/