Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- try
- {
- $conn = new Mongo('10.147.87.92');
- $username = "admin";
- $password = "php";
- $db = $conn->user;
- $db->authenticate($username,$password);
- }
- catch (MongoConnectionException $e)
- {
- die('Error connecting to MongoDB server');
- }
- catch (MongoException $e)
- {
- die('Error: ' . $e->getMessage());
- }
- ?>
- # problem is it is successfully connecting to localhost but not to 10.147.87.92 ...any help
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement