Page 1 of 1

Getting error reports even if disabled in ini file

Posted: Thu Apr 22, 2004 2:02 am
by Chris Corbyn
Hi,

The server my site is hosted from have disabled error reporting of all kinds and it's really annoying me because when i get parse errors or whatever I just get a blank page and it often takes a while to debug.

Is there anything I can add to the code to force an error report? Like just a line before the code begins.

Thanks

Posted: Thu Apr 22, 2004 2:13 am
by stoyan
Just add in the beginning of the file, you want to debug, the following:

Code: Select all

error_reporting(E_ALL ^ E_NOTICE);

Posted: Thu Apr 22, 2004 2:20 am
by Chris Corbyn
Thanks,

I knew there would be a simple way to do it.