How to Hide/Disable PHP errors in WAMP Servers Windows ?

How to Hide/Disable PHP errors in WAMP Servers Windows ?


To hide php errors on WAMP server in windows open php.ini file, find following line of code

error_reporting = E_ALL

and replace it with

error_reporting = E_ALL & ~E_NOTICE

all future php errors will be hide/disable.

How to Show/Enable PHP errors in WAMP Servers Windows ?


To enable or show php errors in WAMP Server just add following line

error_reporting = E_ALL

in php.ini file.

Where to find and How to open php.ini file in wamp server ?

To open php.ini file in WAMP Server go to system tray click om WAMP Server icon go to PHP and click php.ini file to open it from fly out menu.

Reactions:

2 comments: