Home  >  Article  >  Backend Development  >  How to set php not to display notice information

How to set php not to display notice information

王林
王林Original
2020-09-03 15:24:442770browse

How to set php not to display notice information: first open the "php.ini" configuration file; then modify the configuration [error_reporting=E_ALL & ~E_NOTICE] and save the file; finally restart apache.

How to set php not to display notice information

Specific method:

(Related tutorial recommendations: php video tutorial)

Open first php configuration file php.ini;

How to set php not to display notice information

Then remove the semicolon before error_reporting;

How to set php not to display notice information

Then change it to: error_reporting = E_ALL & ~E_NOTICE

How to set php not to display notice information

(Related recommendation: php training)

Finally restart the apache server.

The above is the detailed content of How to set php not to display notice information. 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