- PHP & MongoDB Tutorial
- PHP & MongoDB - Home
- PHP & MongoDB - Overview
- PHP & MongoDB - Environment Setup
- PHP & MongoDB Examples
- PHP & MongoDB - Connect Database
- PHP & MongoDB - Show Databases
- PHP & MongoDB - Drop Database
- PHP & MongoDB - Create Collection
- PHP & MongoDB - Drop Collection
- PHP & MongoDB - Display Collections
- PHP & MongoDB - Insert Document
- PHP & MongoDB - Select Document
- PHP & MongoDB - Update Document
- PHP & MongoDB - Delete Document
- PHP & MongoDB - Embedded Documents
- PHP & MongoDB - Error Handling
- PHP & MongoDB - Limiting Records
- PHP & MongoDB - Sorting Records
- PHP & MongoDB Useful Resources
- PHP & MongoDB - Quick Guide
- PHP & MongoDB - Useful Resources
- PHP & MongoDB - Discussion
PHP & MongoDB - Environment Setup
Install MongoDB database
Follow the MongoDB installation steps using MongoDB - Environment Setup
Install PHP
Follow the PHP installation steps using PHP 7 - Environment Setup
PHP MongoDB Driver
To use MongoDB with PHP, you need to use MongoDB PHP driver. Download the driver from the url Download PHP Driver. Make sure to download the latest release of it. Now unzip the archive and put php_mongo.dll in your PHP extension directory ("ext" by default) and add the following line to your php.ini file −
extension = php_mongo.dll
In case of Windows, make sure libsasl.dll is in the windows's PATH. This dll is available in PHP installation directory.
Advertisements
To Continue Learning Please Login
Login with Google