Home > Article > Backend Development > How to show all errors in PHP
How to display all errors in PHP
1. First find the PHP configuration file php.ini and open it with an editor;
php.ini file location can be viewed by checking the Loaded Configuration File item in "phpinfo()"
2, and then change the value of the configuration item "display_errors" first Is "On";
Use the editor search function to search for "display_errors", and then check whether this configuration item is turned on. If not, turn it on.
3. Then change the configuration item "error_reporting" to "E_ALL";
Use the editor as above Search, then change the value to "E_ALL"
4, and finally restart the service.
Recommended tutorial: "PHP Tutorial"
The above is the detailed content of How to show all errors in PHP. For more information, please follow other related articles on the PHP Chinese website!