Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- try
- {
- error_reporting(E_ALL);
- echo test1;
- $m = new Mongo("localhost");
- echo test3;
- $db = $m->selectDB("TestData");
- $coll = $db->selectCollection("TestPendingRequests");
- echo "found: " . $coll->findOne();
- }
- catch ( MongoConnectionException $e )
- {
- echo '<p>Couldn\'t connect to mongodb, is the "mongo" process running?</p>';
- exit();
- }
- ?>
Add Comment
Please, Sign In to add comment