Guest User

Untitled

a guest
Jul 17th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. <?php
  2. try
  3. {
  4. error_reporting(E_ALL);
  5. echo test1;
  6. $m = new Mongo("localhost");
  7. echo test3;
  8. $db = $m->selectDB("TestData");
  9.  
  10. $coll = $db->selectCollection("TestPendingRequests");
  11. echo "found: " . $coll->findOne();
  12. }
  13. catch ( MongoConnectionException $e )
  14. {
  15. echo '<p>Couldn\'t connect to mongodb, is the "mongo" process running?</p>';
  16. exit();
  17. }
  18. ?>
Add Comment
Please, Sign In to add comment