Getting error reports even if disabled in ini file

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Getting error reports even if disabled in ini file

Post 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
stoyan
Forum Newbie
Posts: 3
Joined: Thu Apr 22, 2004 2:13 am
Contact:

Post 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);
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Thanks,

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