RE: [PHP-DB] DB dont_die and errors
| From: | Bastien Koert | Date: | Fri, 27 May 2005 21:15:45 +0000 |
| Subject: | RE: [PHP-DB] DB dont_die and errors | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-39558@lists.php.net to get a copy of this message | ||
You should be able to comment out the error message portions that you don't want to display
bastien
From: Alessandro Pasotti <ale.pas@tiscali.it> Reply-To: alessandro@acqualba.it To: php-db@lists.php.net Subject: [PHP-DB] DB dont_die and errors Date: Thu, 26 May 2005 18:58:07 +0200 Hi all, When the connection fails, the default behaviour is to die, printing also the dns, with user and password!!! How can I avoid this? When I set dont_die, it goes on but the script stops later with a fatal error (since DB is not initialized). Does anybody knows a graceful way to handle connection errors. I'm using DBDataObject to do all the DB stuff but the internals of this class don't check for PEAR errors after calling connect(), should I subclass it and rewrite some methods? Bye. -- Alessandro Pasotti ICQ# 245871392 Linux User #167502 -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php