title: php mongodb : Call to undefined method MongoDB::insert() in db.php
body: <p>I'm running this code:</p>
  
  <pre><code>    $db = new Mongo("mongodb://user:pw@flame.mongohq.com:27081/dbname");
      $collection = $db-&gt;foobar;
  
      $collection-&gt;insert($content);
  </code></pre>
  
  <p>I'm trying to test mongohq by just creating a random collection.</p>
  
  <p>I'm getting this error:</p>
  
  <pre><code>Fatal error:  Call to undefined method MongoDB::insert() in /ajax/db.php on line 24
  </code></pre>
  
  <p>I have the client installed as far as I know:</p>
  
  <p><img src="https://i.stack.imgur.com/FsMwB.jpg" alt="alt text"></p>
  
  <p>I'm also running php 5.2.6</p>
  
  <p>What's the problem? Thanks.</p>