php代码:
error_reporting(E_ALL);
function cache_shutdown_error() {
$_error = error_get_last();
if ($_error && in_array($_error['type'], array(1, 4, 16, 64, 256, 4096, E_ALL))) {
echo '<font>你的代码出错了:</font>';
echo '致命错误:' . $_error['message'] . '';
echo '文件:' . $_error['file'] . '';
echo '在第' . $_error['line'] . '行';
}
}
register_shutdown_function("cache_shutdown_error");
// 检测PHP环境
if (version_compare(PHP_VERSION, '5.3.0', ' 5.3.0 !');
}










