note 101339 added to mongo.connecting
| From: | Bowser at osu1 dot php dot net | Date: | Fri, 10 Dec 2010 22:33:00 +0000 |
| Subject: | note 101339 added to mongo.connecting | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-174787@lists.php.net to get a copy of this message | ||
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.
----
Server IP: 69.147.83.197
Probable Submitter: 93.48.154.53
----
Manual Page -- http://www.php.net/manual/en/mongo.connecting.php
Edit -- https://master.php.net/note/edit/101339
Del: integrated -- https://master.php.net/note/delete/101339/integrated
Del: useless -- https://master.php.net/note/delete/101339/useless
Del: bad code -- https://master.php.net/note/delete/101339/bad+code
Del: spam -- https://master.php.net/note/delete/101339/spam
Del: non-english -- https://master.php.net/note/delete/101339/non-english
Del: in docs -- https://master.php.net/note/delete/101339/in+docs
Del: other reasons-- https://master.php.net/note/delete/101339
Reject -- https://master.php.net/note/reject/101339
Search -- https://master.php.net/manage/user-notes.php