Use the error_reporting function to define which errors you would like PHP to report to the error handler. If you want everything to be mailed to you, including warnings, use the E_ALL setting, though you may get a lot more "warnings" than you expect this way:

error_reporting(E_ALL);

function ErrorHandler($_ErrorNumber_, $_ErrorString_, $_ErrorFile_, $_ErrorLine_)
{
mail(...);
}

set_error_handler("ErrorHandler");



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

Reply via email to