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

Detailed explanation of how to remove warning messages (NOTICE) by configuring php.ini based on AppServ, XAMPP, and WAMP_PHP Tutorial

WBOY
WBOYOriginal
2016-07-21 15:10:45824browse

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.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/327017.htmlTechArticleAppServ, You need to configure php, apache and mysql one by one. Download the corresponding installation package...
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