title: Fatal error: Class 'MongoClient' not found in E:\xampp\htdocs\teach\mongo\index.php on line 11 - Mongodb + XAMPP
body: <p><br>I downloaded Mongodb - Installed -> create bat file -> create Data/db folder -> working fine in cmd
  <br>
  <br>Then, Downloaded PHP Driver from GitHib Version 5.3 TS VC6.
  <br>copied "php_mongo.dll" in "xampp/php/ext"
  <br>Then edited "xampp/php/php.ini" - extension=php_mongo.dll
  <br>
  Restarted Apache - stop and start
  <br><br>
  <strong>Check</strong><br>
  [http://localhost/xampp/] -> phpinfo() -> showing "mongo"</p>
  
  <p>I run the below code and getting ERROR<br>
  "<strong>Fatal error</strong>:  Class 'MongoClient' not found in E:\xampp\htdocs\teach\mongo\index.php on line 11"<br>
  Again and again</p>
  
  <p>Please help</p>
  
  <p><strong>Testing RUNNING</strong></p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
      &lt;head&gt;
          &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt;
          &lt;title&gt;C MongoDB Insert&lt;/title&gt;
      &lt;/head&gt;
      &lt;body&gt;
  &lt;?php
  echo '&lt;pre&gt;';
  // Connect to the MongoD with defaults which are localhost and port 27017)  
  $m = new MongoClient();
  echo '&lt;br /&gt;Connection var dump below &lt;br /&gt;';
  var_dump($m);
  // Use a DataBase (will be created if it doesn't exist)
  echo '&lt;br /&gt;database var dump below &lt;br /&gt;';
  $db = $m-&gt;demodb;
  var_dump($db);
  // Use a Collection (will be created if it doesn't exist)
  $coll = $db-&gt;democoll;
  echo '&lt;br /&gt;Collection var dump below &lt;br /&gt;';
  var_dump($coll);
  $coll-&gt;insert(array(
      'key1' =&gt; 'Another Row',
      'AnArray' =&gt; array(
          'embedded array value 1',
          'embedded array value 2'
      ),
      'embeddedDoc1' =&gt; array(
          'embedDoc1Key1' =&gt; 'Embedded text in Doc1',
          'embedDoc1Key2' =&gt; 'More text for fun'
      )
      ));
      echo '&lt;h2 style="color:red"&gt;Below is our Document&lt;/h2&gt;';
  $myDoc = $coll-&gt;findOne(array('key1' =&gt; 'Another Row'));
  print_r($myDoc);
  echo '&lt;/pre&gt;';
  ?&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>