Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php $m = new Mongo("mongodb://localhost/mongo");
- $result = $m->mongo->basic->findOne(array('_id'=>(string)rand(1, 100000)));
- if($result){
- echo 'Goood';
- }else{
- echo 'Bad';
- }
- $m->close();
- exit;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement