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.
Specific method:
(Related tutorial recommendations: php video tutorial)
Open first php configuration file php.ini;
Then remove the semicolon before error_reporting;
Then change it to: error_reporting = E_ALL & ~E_NOTICE
(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!