NoSQL Zone is brought to you in partnership with:

Eric is the Editorial Manager at DZone, Inc. Feel free to contact him at egenesky@dzone.com Eric has posted 804 posts at DZone. You can read more from them at their website. View Full User Profile

Tutorial: Connecting PHP to MongoDB from XAMPP

03.27.2013
| 3878 views |
  • submit to reddit

Below is a 20-minute tutorial for connecting PHP to MongoDB from XAMPP in Windows 7.  From the original post:

Download the drivers. Place them in the php\ext directory.Edit php.ini. Stop/Start Apache. Verify with phpinfo(). Run test PHP script showing the create of the MongoClient connection, the use of a DB, the collection selection and demo an Insert and FindOne command. Link to supporting post - http://davecoast.com/dc_blog/how-to-mongodb-php-connect/


Published at DZone with permission of its author, Eric Genesky.

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)