Re[2]: [PHP] Error Suppression with '@'
| From: | Richard Davey | Date: | Tue, 02 Aug 2005 22:14:21 +0000 |
| Subject: | Re[2]: [PHP] Error Suppression with '@' | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-219871@lists.php.net to get a copy of this message | ||
Hello Justin,
Tuesday, August 2, 2005, 8:43:09 PM, you wrote:
JB> Does suppressing the error only suppress it from the screen, or
JB> does it ignore the error?
JB> ie: is the error still logged?
It will ignore it totally, it doesn't even make it as far as the log
files - which is why in most cases it's a bad thing to use. When it
comes to the mysql/i functions however I will suppress the error and
use my own error checking to avoid blank pages / unsightly warnings.
Best regards,
Richard Davey
--
http://www.launchcode.co.uk - PHP Development Services
Zend Certified Engineer
"I do not fear computers. I fear the lack of them." - Isaac Asimov