48 php错误报告设置
2016-08-11 15:40
162 查看
<?php
// 关闭所有PHP错误报告
error_reporting ( 0 );
// Report simple running errors
error_reporting ( E_ERROR | E_WARNING | E_PARSE );
// 报告 E_NOTICE也挺好 (报告未初始化的变量
// 或者捕获变量名的错误拼写)
error_reporting ( E_ERROR | E_WARNING | E_PARSE | E_NOTICE );
// 除了 E_NOTICE,报告其他所有错误
// 这是在 php.ini 里的默认设置
error_reporting ( E_ALL ^ E_NOTICE );
// 报告所有 PHP 错误 (参见 changelog)
error_reporting ( E_ALL );
// 报告所有 PHP 错误
error_reporting (- 1 );
// 和 error_reporting(E_ALL); 一样
ini_set ( 'error_reporting' , E_ALL );
?>
// 关闭所有PHP错误报告
error_reporting ( 0 );
// Report simple running errors
error_reporting ( E_ERROR | E_WARNING | E_PARSE );
// 报告 E_NOTICE也挺好 (报告未初始化的变量
// 或者捕获变量名的错误拼写)
error_reporting ( E_ERROR | E_WARNING | E_PARSE | E_NOTICE );
// 除了 E_NOTICE,报告其他所有错误
// 这是在 php.ini 里的默认设置
error_reporting ( E_ALL ^ E_NOTICE );
// 报告所有 PHP 错误 (参见 changelog)
error_reporting ( E_ALL );
// 报告所有 PHP 错误
error_reporting (- 1 );
// 和 error_reporting(E_ALL); 一样
ini_set ( 'error_reporting' , E_ALL );
?>
相关文章推荐
- php中设置错误报告级别error_reporting()
- 关于PHP.INI中的错误ERROR报告级别设置
- php设置错误报告级别的方法
- php之错误报告设置
- PHP设置错误报告
- PHP中如何设置error_reporting错误报告级别
- PHP配置文件php.ini中打开错误报告的设置方法
- php中设置错误报告级别error_reporting()
- php学习笔记(09)—— 位运算与PHP错误报告设置
- PHP中如何设置error_reporting错误报告级别
- 关于PHP.INI中的错误ERROR报告级别设置
- PHP配置文件php.ini中打开错误报告的设置方法
- php中设置错误报告级别error_reporting()
- PHP中如何设置error_reporting错误报告级别
- php中通过设置php.ini(或者写到需要受影响的单个php文件中)使warning,notice等错误报告不在页面中显示
- php中设置错误报告级别error_reporting()
- PHP中如何设置error_reporting错误报告级别
- PHP中如何设置error_reporting错误报告级别
- PHP中如何设置error_reporting错误报告级别
- PHP错误报告等级设置 ,不再着ERROR的道