Home >Backend Development >PHP Tutorial >Detailed explanation of how to remove warning messages (NOTICE) by configuring php.ini based on AppServ, XAMPP, and WAMP_PHP Tutorial
AppServ, XAMPP, and WAMP are all packages that integrate apache, mysql, and php. They are more convenient to use. You don’t need to configure php, apache, and mysql one by one.
Download the corresponding installation package and install it. However, for PHP projects, WAMP will display NOTICE information by default. There are long paragraphs on the page, which is ugly. How to remove these warning messages? First find the php.ini file .
The path is: (my installation path is D:wamp) D:wampbinphpphp5.3.10php.ini, open the file.
Search in the file, error_reporting = E_ALL, this is the default value, then change it to: error_reporting = E_ALL&~E_NOTICE, then restart the apache server and it will be ok.
This is for php novices. Although I am also a novice, I finally know how to remove the warning message.
Correspondingly, XAMPP, AppServ and other packages also remove warning messages by modifying php and ini. You can draw inferences from one example.