PHP & MongoDB – Useful Resources The following resources contain additional information on PHP and MongoDB. Please use them to get more in-depth knowledge on this topic. Useful Links on PHP and MongoDB − MongoDB”s official website for its latest docs and updates. − Wikipedia Reference for MongoDB. − Class documentation and examples Useful Books […]
Category Archives: php Mongodb
PHP & MongoDB – Connecting Database First step to do any operation is to create a Manager instance. // Connect to MongoDB using Manager Instance $manager = new MongoDBDriverManager(“mongodb://localhost:27017″); Second step is to prepare and execute a command on a database if the database doesn”t exist then MongoDB creates it automatically. // Create a Command […]
PHP & MongoDB – Display Collections First step to do any operation is to create a Manager instance. // Connect to MongoDB using Manager Instance $manager = new MongoDBDriverManager(“mongodb://localhost:27017”); Second step is to prepare and execute a command on a database to show the list of collections available. // Create a Command Instance $collectionList = […]