title: Fatal Error - 'Mongo' class not found
body: <p>I'm trying to execute this:</p>
  <pre><code>&lt;?php
  
  // connect
  $m = new Mongo();
  
  ?&gt;
  </code></pre>
  <p>But I get the following error:</p>
  <blockquote>
  <p>Fatal error: Class 'Mongo' not found in C:\wamp\www.....</p>
  </blockquote>
  <hr />
  <h3>Info:</h3>
  <ul>
  <li>PHP: 5.38</li>
  <li>MongoDB: mongodb-win32-i386-2.0.2</li>
  <li>MongoDB PHP Driver: mongo-1.1.4-php5.3vc6ts</li>
  <li>WampServer: 2.2</li>
  <li>OS: Windows 7 Enterprise SP1</li>
  </ul>
  <p>I've followed the MongoDB installation fine (incl. adding the DLL to ext &amp; php.ini), I've started mongod.exe and WAMP is running.</p>
  <h3>What does this imply is missing/incorrect?</h3>
  <hr />
  <h1>Edit:</h1>
  <p>I have got it running on another Windows 7 machine (Windows 7 Profressional). That got me curious. So now my Windows 7 Enterprise SP1 machine has the same <code>http.conf</code>, <code>php.ini</code>, <code>C:\wamp\bin\mongodb</code> contents (therefore DBs are the exact same) and the exact same batch file to start <code>mongod.exe</code> as my Win7 Professional machine.</p>
  <p>But still, all I can do on my Win7 Enterprise SP1 machine is connect via command line. My Win7 Professional machine's <code>phpinfo()</code> contains:<br />
  <img src="https://i.stack.imgur.com/nDSOM.jpg" alt="Mongo section in php.ini" />
  My Win7 Enterprise SP1 machine doesn't contain any reference to MongoDB.</p>
  <p>The contents of the batch file I use to start MongoDB:</p>
  <pre><code>&quot;C:\wamp\bin\mongodb\bin\mongod.exe&quot; --logpath &quot;C:\wamp\bin\mongodb\logs\error.log&quot; --logappend --dbpath &quot;C:\wamp\bin\mongodb\data\db&quot; --directoryperdb --service
  Net Start &quot;MongoDB&quot;
  pause
  </code></pre>