This is a example to explain how to use MongoDb with Php. In this post I will explain how to download and start MongoDb. Next you can run the Phonebook aplication.
Download MongoDb
http://www.mongodb.org/downloads
For this example I tested 2.0.0 version for linux
Start MongoDb
Extract the file anywhere, and in mongodb-x-x-x directory create 'data' directory. Next run:
[terminal]
$ ./bin/mongod --dbpath data
* 'data' is the name of directory for save data
Run Phonebook example
Download: http://www.mediafire.com/?mqncj9lsjrts3jx
And extract to /var/www/ the application
Next go to http://localhost/MongoPhoneBook/
Enjoy!