Log in

View Full Version : How to enable display errors for a single php file



borris83
04-08-2009, 09:30 AM
Displaying errors is turned off in my web server... Now, Is it possible to enable errors for just one php file?

techietim
04-08-2009, 10:18 AM
Place this at the top of your file:


error_reporting(E_ALL ^ E_NOTICE);

borris83
04-08-2009, 11:19 AM
thanks for your reply.. I will try it