NoSQL is very popular now, because I am in the company's environmental problems, the current lack of such a database, out of curiosity, turned over the information, but also self-study a bit. Make a note of it here.
My native environment: apmserv5.2.6,php must be 5.2.
1, First download: Mongodb-win32-x86_64-2008plus-2.6.3.zip (Forget where to download the), decompression such as:
I copied the extracted files to the E:\mongodb directory.
2, then search the internet for a bit: Php_mongo_extension.zip, and then download, (Forget where to download the), decompression such as:
I selected the Php_mongo.dll in the red box and then copied this file into my PHP environment under the Ext folder. Then restart Apache.
3, the above two steps to complete the configuration, the following start to MongoDB.
I used the simplest way to start, write a mongodb.cnf file, and put it in the e:\mongodb\bin\ directory. The content is: dbpath=e:\mongodb\data\db, of course, the premise is to have this directory. (You don't have to create a directory under Windows.) mkdir
It's over by here.
This time, the phpinfo will certainly have something to show:
Then write the following code directly in the Zend:
OK, it's done!