PHP outputs all error reports error_reporting = E_ALL settings
For example, do not display warning error_reporting = E_ALL &~ E_WARNING
Use the PHP function to set PHP. INI ini_set () as shown in Figure
Ini_set ("error_reporting", E_ALL)
You can use the ini_get () function to obtain the value in PHP. ini ()
For example, ini_get ("upload_max_filesize ")
PHP does not display the error report. display_errors = off is set in PHP. ini.
We need to enable the Error Report in the development stage, and do not enter any error report in the runtime stage (display_errors = Off)
Write the Error Report to the log
1: Specify the Output Error Report error_reproting = E_ALL
2: Disable Error output display_errors = Off
3: Enable the error log function log_errors = On
@ By default, the error log location is not specified, and is written to the web server logs by default.
@ Specify a file name for error_log (where the log is stored)
@ Use error_log = syslog To write logs to the Operating System
Rootexp