These are my notes for the talk I’m giving today on PHP and MongoDB. Example PHP script for communicating with MongoDB: #!/usr/bin/env php <?php // Instantiate the Mongo client $m = new MongoClient(); // Connect to a database. If it doesn’t exist, it will be created $db = $m->example; // Point to a collection within… Read more »
Posts Tagged: MongoDB
I’ll be giving a Talk on MongoDB and PHP this Saturday at the Ann Arbor PHP MySQL Meetup. Come check it out if you’re in the area.
There is a summary at the end of this post to skip all of my debugging. Scroll to the end to skip all of this rambling. I was trying to get MongoDB support working in the PHP provided by MAMP Pro. I issued the PECL command to get it installed and was greeted with the… Read more »