Home  >  Article  >  Backend Development  >  How to show all errors in PHP

How to show all errors in PHP

Guanhui
GuanhuiOriginal
2020-05-14 14:23:375273browse

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()"

How to show all errors in PHP

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.

How to show all errors in PHP

3. Then change the configuration item "error_reporting" to "E_ALL";

Use the editor as above Search, then change the value to "E_ALL"

How to show all errors in PHP

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!

Statement:
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