note 101339 deleted from mongo.connecting by bjori
| From: | bjori@php.net | Date: | Sat, 01 Sep 2012 15:30:21 +0000 |
| Subject: | note 101339 deleted from mongo.connecting by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-190402@lists.php.net to get a copy of this message | ||
Note Submitter: Bowser
----
It is very important to suggest those ones using the form
$m = new Mongo("mongodb://${username}:${password}@host");
to put it into a try{} construct for security reasons.
In fact in case of mongoDB isn't accessible for any reason if PHP.ini's options is setted
for displaying errors (the default setting), it will show up with the exception's error
(MongoConnectionException) even the couple username/password of the database and this is really not
a good thing.