Hi !
It's my first post here: Hello everyone :-)
Do you know why this code doesnt work ? Thanks for any help.
<?
echo('start<br>');
// redefine the user error constants - PHP 4 only
define("FATAL", E_USER_ERROR);
define("ERROR", E_USER_WARNING);
define("WARNING", E_USER_NOTICE);
// set the error reporting level for this script
error_reporting(FATAL | ERROR | WARNING);
echo('test<br>');
function catch_err($errno, $errstr,$errfile, $errline)
{
echo "<b>FATAL</b> [$errno] $errstr<br />\n";
echo('error!');
}
set_error_handler("catch_err", E_ERROR);
trigger_error("test...", E_USER_ERROR);
echo('<br>end');
?>
--
zYm3N[@interia.pl]
..:: C++ | C | PHP | HTML | Delphi | Pascal
..:: >> http://zymen.cjb.net <<
..:: http://zymen.cjb.net/cytowanie.html