Re: Error Handling question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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){
    [...]
}

But does that mean that I have to copy paste this code in all my Php pages
or is there a better way ?


You could use auto_prepend_file:

http://www.php.net/manual/en/ini.core.php#ini.auto-prepend-file

brian

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux