<?php<br /><br />// Turn off all error reporting<br />error_reporting(0);<br /><br />// Report simple running errors<br />error_reporting(E_ERROR <br><font color='#FF8000'>------解决方案--------------------</font><br> E_WARNING <br><font color='#FF8000'>------解决方案--------------------</font><br> E_PARSE);<br /><br />// Reporting E_NOTICE can be good too (to report uninitialized<br />// variables or catch variable name misspellings ...)<br />error_reporting(E_ERROR <br><font color='#FF8000'>------解决方案--------------------</font><br> E_WARNING <br><font color='#FF8000'>------解决方案--------------------</font><br> E_PARSE <br><font color='#FF8000'>------解决方案--------------------</font><br> E_NOTICE);<br /><br />// Report all errors except E_NOTICE<br />// This is the default value set in php.ini<br />error_reporting(E_ALL ^ E_NOTICE);<br /><br />// Report all PHP errors (see changelog)<br />error_reporting(E_ALL);<br /><br />// Report all PHP errors<br />error_reporting(-1);<br /><br />// Same as error_reporting(E_ALL);<br />ini_set('error_reporting', E_ALL);<br /><br />?>
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn