Disable warning and notices in XAMPP – When you install new XAMPP software to your PC it will display warning and notice in all php pages that you created. This is because E_ALL & ~E_NOTICE enabled in php.ini configuration file. In this tutorial we shared video tutorial and screenshots which explains the best method to turn off notices and warning in the XAMPP .

Steps to disable warning and notices in XAMPP:

Step 1: Click on start button and  open XAMPP Control Panel.

Step 1 Disable warning and notices in XAMPP

Step 2: In the XAMPP control panel, click on apache’s config button. It will display the lists of options. Click on PHP (php.ini) and open this file in notpad or any other editor.

Disable warning and notices in XAMPP 

Step 3: In the php.ini file enter Ctrl + F. Then search for the content error_reporting= 

Step 3 Disable warning and notices in XAMPP

Step 4: PHP notices and warnings will turn off by editing the following code in the php.ini file. In the error_reporting just replace by :

Step 4 Disable warning and notices in XAMPP

Step 5: Last and final step is in the Xampp control panel stop and start the apache server. This will restart the apache server with new php configuration. Then open the browser and check the files working without any errors.

stop xampp server

Video Tutorial: If you still have doubts then you can refer this video. This video tutorial will explain how to disable warning and notices in XAMPP by editing php.ini files.

Note: It is generally not a good idea to turn off notices and warnings for security reasons. Because it will give some useful information’s to the developers and servers.

Errors and Logging documentation: Following constant names you can use in php.ini.
E_ERROR – Fatal run time errors which is not able to recover.
E_WARNINING – Run time warning and non-fatal errors.
E_NOTICE – This is run time notices which indicates an error.
E_ALL – It will display all errors and warnings.

🔥2.6 K Views


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.