error_reporting
配置错误信息回报的等级。语法: int error_reporting(int [level]);返回值: 整数函数种类: PHP 系统功能
配置错误信息回报的等级。语法: int error_reporting(int [level]);返回值: 整数函数种类: PHP 系统功能
解决方案 »
- php如何取得session中验证码的值,如何进行验证??求解答
- php+mysql 为什么我做排序回传值的时候有问题
- Php伪静态是在程序里处理,还是用htaccess工具处理
- 有什么方法可以加快php搜索速度?能通过php+xml实现吗
- mysql 如何自读取dbf文件中的数据?不想用老外写的东西。。。。
- 编码问题?
- 求教一个简单的显示问题
- PHP与ASP的差异
- 在<select>标签允许多选的时候,PHP怎么接收<select>中的多个选择?
- 关于php计时器的问题.
- 各位老大,帮俺写个函数
- 请教一个CSS问题,鼠标移动到超连接时显示I形,按下左键时为手形,如何改鼠标称到超连接时为手形?谢谢。
1 E_ERROR
2 E_WARNING
4 E_PARSE
8 E_NOTICE
16 E_CORE_ERROR
32 E_CORE_WARNING E_NOTICE 表示一般情形不记录,只有程式有错误情形时才用到,例如企图存取一个不存在的变数,或是呼叫 stat() 函式检视不存在的档案。
E_WARNING 通常都会显示出来,但不会中断程式的执行。这对除错很有效。例如:用有问题的常规表示法呼叫 ereg()。
E_ERROR 通常会显示出来,亦会中断程式执行。意即用这个遮罩无法追查到记忆体配置或其它的错误。
E_PARSE 从语法中剖析错误。
E_CORE_ERROR 类似 E_ERROR,但不包括 PHP 核心造成的错误。
E_CORE_WARNING 类似 E_WARNING,但不包括 PHP 核心错误警告。 --------------------------------------------------------------------------------
1 E_ERROR
2 E_WARNING
4 E_PARSE
8 E_NOTICE
16 E_CORE_ERROR
32 E_CORE_WARNING
64 E_COMPILE_ERROR
128 E_COMPILE_WARNING
256 E_USER_ERROR
512 E_USER_WARNING 下面是上面设置项表示的意思:
; E_ALL - All errors and warnings
; E_ERROR - fatal run-time errors
; E_WARNING - run-time warnings (non-fatal errors)
; E_PARSE - compile-time parse errors
; E_NOTICE - run-time notices (these are warnings which often result
; from a bug in your code, but it's possible that it was
; intentional (e.g., using an uninitialized variable and
; relying on the fact it's automatically initialized to an
; empty string)
; E_CORE_ERROR - fatal errors that occur during PHP's initial startup
; E_CORE_WARNING - warnings (non-fatal errors) that occur during PHP's
; initial startup
; E_COMPILE_ERROR - fatal compile-time errors
; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
; E_USER_ERROR - user-generated error message
; E_USER_WARNING - user-generated warning message
; E_USER_NOTICE - user-generated notice message
;