should i set my error reporting to not display notices???

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
monloi
Forum Newbie
Posts: 7
Joined: Thu Mar 16, 2006 3:00 am
Contact:

should i set my error reporting to not display notices???

Post by monloi »

im just really bothered guys if its ok to ignore notices or undefined variables...coz if its ok then ill set my php.ini to hide notices
but if it is not?why?what can it do to my website???
User avatar
jayshields
DevNet Resident
Posts: 1912
Joined: Mon Aug 22, 2005 12:11 pm
Location: Leeds/Manchester, England

Post by jayshields »

It's just preference. I choose E_ALL when developing and usually don't turn it off when it's live because I'm confident the end-user wont see any notices :P
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Post by shiznatix »

Use E_ALL while developing. It will help you find errors and do debugging. You should keep it on for the most part too because its good practice to code properly not just code in a alright way.
Post Reply