Re: Error Handling question
| From: | brian | Date: | Mon, 06 Aug 2007 14:38:59 +0000 |
| Subject: | Re: Error Handling question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-260237@lists.php.net to get a copy of this message | ||
debussy007 wrote:
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){You could use auto_prepend_file: http://www.php.net/manual/en/ini.core.php#ini.auto-prepend-file brian[...]} But does that mean that I have to copy paste this code in all my Php pages or is there a better way ?