How to connect to MongoDB using PHP

1 · Josh Sherman · Oct. 19, 2014, midnight
I’ve previously discussed installing the MongoDB module but have yet to touch on how to actually do anything past the install. The first thing to do is to connect to the MongoDB server. This can simply be done like this: $client = new MongoClient(); This will connect to the default......