: This article mainly introduces the error display control of PHP. if you are interested in the PHP Tutorial, refer to it.
There are two ways to control the error display in php:
Set whether to display error
Php. ini
Display_errors = On | Off;
Program source code
Ini_set ('display _ errors ', true | false );
Setting the levels of errors displayed depends on the first item
In the php. ini file
Error_reporting = E_WARNING; error_reporting = E_WARNING | E_NOTICE; // or error_reporting = E_ALL | E_STRICT;
Program source code
Ini_set ('error _ report', E_ALL | E_STRICT );
'). AddClass ('pre-numbering '). hide (); $ (this ). addClass ('Has-numbering '). parent (). append ($ numbering); for (I = 1; I <= lines; I ++) {$ numbering. append ($ ('
'). Text (I) ;}; $ numbering. fadeIn (1700) ;}) ;}; script
The above introduces the error display control of PHP, including some content, and hopes to help friends who are interested in PHP tutorials.