How to open the error report in php: directly add [ini_set("display_errors", "On"); ini_set("error_reporting", E_ALL);] to the php file.
Specific method:
(Recommended tutorial: php video tutorial)
Directly enter the following Just add two lines of code to the php file
ini_set("display_errors", "On");//打开错误提示 ini_set("error_reporting",E_ALL);//显示所有错误
We can also achieve it by modifying the php.ini configuration file (not recommended).
First open the php.ini file;
Then make the following modifications
display_errors = On
Related recommendations:php training
The above is the detailed content of How to open error report in php. For more information, please follow other related articles on the PHP Chinese website!