Error Handling question
| From: | debussy007 | Date: | Mon, 06 Aug 2007 09:41:27 +0000 |
| Subject: | Error Handling question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-260231@lists.php.net to get a copy of this message | ||
Hi,
I am new to PHP and need some help for error handling.
I read in the docs that i can handle the errors this way in my PhP:
set_error_handler('errorHandler');
function errorHandler($errnum,$errmsg,$file,$lineno){
[...]
}
But does that mean that I have to copy paste this code in all my Php pages
or is there a better way ?
Thank you.
--
View this message in context: http://www.nabble.com/Error-Handling-question-tf4223141.html#a12013437
Sent from the PHP - General mailing list archive at Nabble.com.