title: MongoClient not working with php
body: <p>I'm trying to use mongodb with php but I keep getting this error</p>
  
  <blockquote>
    <p>("Class 'MongoClient' not found")</p>
  </blockquote>
  
  <p>whenever I try this code:</p>
  
  <pre><code>$m = new MongoClient();
  </code></pre>
  
  <p>The weird part is that if I run a <code>get_loaded_extensions()</code>, mongodb shows up and it also shows up on the <code>phpinfo()</code>. I also have <code>extension=mongodb.so</code> on the php.ini file.</p>
  
  <p>I'm on debian running MongoDB shell version: 2.6.11 and php is running mongodb version  1.1.2.</p>