浏览模式: 标准 | 列表 2014年10月27日的文章

PHP脚本中错误显示设置

//显示所有错误回显

ini_set("display_errors",1);

//禁用错误报告,也就是不显示错误

error_reporting(0);

//报告运行时错误

error_reporting(E_ERROR| E_WARNING| E_PARSE);

//报告所有错误

error_reporting(E_ALL);