2 Jul '15

Anupa Manipal

A professional Software Developer in VB.NET - SQL Server and learner of PHP. Expertise in implementation of various projects including designing, development, coding and implementation of software applications.

0 Shares

Disable warning and notices in XAMPP

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 :
error_reporting= E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR 

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.

About Anupa Manipal

A professional Software Developer in VB.NET - SQL Server and learner of PHP. Expertise in implementation of various projects including designing, development, coding and implementation of software applications.

Related Posts

Leave a Reply