Tutorial: Connecting PHP to MongoDB from XAMPP
Tutorial: Connecting PHP to MongoDB from XAMPP
Join the DZone community and get the full member experience.
Join For FreeMariaDB TX, proven in production and driven by the community, is a complete database solution for any and every enterprise — a modern database for modern applications.
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/
MariaDB AX is an open source database for modern analytics: distributed, columnar and easy to use.
Opinions expressed by DZone contributors are their own.
{{ parent.title || parent.header.title}}
{{ parent.tldr }}
{{ parent.linkDescription }}
{{ parent.urlSource.name }}