first i'm trying to catch the error that PHP is throwing in global space. i want to catch that, find what the error is and then use my functions to handle that error gracefully instead of breaking out of the application completley.
secondly i wanted to be able to set error handling per users/admins. depending on the permissions set.
ok, the first i have no idea how to do. maybe
Code: Select all
ini_get("error_reporting");Code: Select all
$levels = array(
E_ERROR => 'Error',
E_WARNING => 'Warning',
E_PARSE => 'Parsing Error',
E_NOTICE => 'Notice',
E_CORE_ERROR => 'Core Error',
E_CORE_WARNING => 'Core Warning',
E_COMPILE_ERROR => 'Compile Error',
E_COMPILE_WARNING => 'Compile Warning',
E_USER_ERROR => 'User Error',
E_USER_WARNING => 'User Warning',
E_USER_NOTICE => 'User Notice',
E_STRICT => 'Runtime Notice'
);thanks for your help