Category Archives: php Mongodb

Khóa học miễn phí PHP & MongoDB – Useful Resources nhận dự án làm có lương

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 […]

Khóa học miễn phí PHP & MongoDB – Create Collection nhận dự án làm có lương

PHP & MongoDB – Create Collection 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 to create the collection. // Create a Command Instance $createCollection = new MongoDBDriverCommand([“create” => “sampleCollection”]); // Execute […]

Khóa học miễn phí PHP & MongoDB – Drop Database nhận dự án làm có lương

PHP & MongoDB – Drop 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 to drop the database. // Create a Command Instance $dropDatabase = new MongoDBDriverCommand([“dropDatabase” => 1]); // Execute […]