; ; - Show all errors, except for notices and coding standards warnings ; ;error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT ; ; - Show all errors, except for notices ; error_reporting = E_ALL & ~E_NOTICE - Show only errors;error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR ; ; - Show all errors ; error_reporting = E_ALL 完全郁闷了,是不是像上面这样???
; ; - Show all errors, except for notices and coding standards warnings ; ;error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT ; ; - Show all errors, except for notices ; error_reporting = E_ALL & ~E_NOTICE - Show only errors;error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR ; ; - Show all errors ; ;error_reporting = E_ALL 像你刚才那样error_reporting = E_ALL就把error_reporting = E_ALL & ~E_NOTICE的设置给覆盖了,所以才没用,如果你是要学习的话就E_ALL吧,Notice Just Notice Not Error
but you edit it :var $items = array();//replace:var $items;
add this before your program:
error_reporting(E_ALL ^ E_NOTICE);
no,there is an "error_reporting =" setting under it.change that.
如果让他不显示可以像楼上说的配置php.ini
如果你没有权限修改这个文件可以直接用error_reporting这个函数在当前程序中设置错误报告类型
; - Show all errors, except for notices and coding standards warnings
;
;error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT
;
; - Show all errors, except for notices
;
error_reporting = E_ALL & ~E_NOTICE - Show only errors;error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR
;
; - Show all errors
;
error_reporting = E_ALL
完全郁闷了,是不是像上面这样???
; - Show all errors, except for notices and coding standards warnings
;
;error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT
;
; - Show all errors, except for notices
;
error_reporting = E_ALL & ~E_NOTICE - Show only errors;error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR
;
; - Show all errors
;
;error_reporting = E_ALL
像你刚才那样error_reporting = E_ALL就把error_reporting = E_ALL & ~E_NOTICE的设置给覆盖了,所以才没用,如果你是要学习的话就E_ALL吧,Notice Just Notice Not Error