Fatal error:
Class \'Mongo\' not found in C:\\Apache Software Foundation\\Apache2.2\\htdocs\\sample\\testdb.php
Can anyone help
Make sure you have the correct php driver installed.
For example if "Thread Safety" is enabled in your php.ini, then make sure you have the "Thread-Safe Mongo Extension" installed and NOT the "Non-Thread-Safe" version.
You're probably using an older version of the Mongo DB driver. The class Mongo
has been replaced with MongoClient
, since v 1.3.0 of the driver. See this stackoverflow thread :