title: How to connect to remote mongodb with php?
body: <p>Here is the php code that I'm working with in my local machine:</p>
  
  <pre><code>$m = new Mongo();
  $db=$m-&gt;selectDB("def");
  //then all in my code i use $db to select insert ... (as defined in php doc)
  </code></pre>
  
  <p>Now I want to connect my application to a remote server (hosted by mongood.com)</p>
  
  <p>How can I do this?</p>