Error suppresors?

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
iFlex
Forum Commoner
Posts: 41
Joined: Sat May 30, 2009 3:44 am

Error suppresors?

Post by iFlex »

Anybody know any error supressors for Divison By Zero?

Thanks, Im a noob when it comes to this...
User avatar
jayshields
DevNet Resident
Posts: 1912
Joined: Mon Aug 22, 2005 12:11 pm
Location: Leeds/Manchester, England

Re: Error suppresors?

Post by jayshields »

What?

Why would you want to suppress a division by zero error? You could hide warnings using error_reporting(), but you should just check you're not passing a 0 into a division operator before you do it.
User avatar
iFlex
Forum Commoner
Posts: 41
Joined: Sat May 30, 2009 3:44 am

Re: Error suppresors?

Post by iFlex »

Its not for me its a script im working on for my new webhosting company, it automaticly adds on to any PHP page and hides errors as part of a premium plan.
User avatar
jayshields
DevNet Resident
Posts: 1912
Joined: Mon Aug 22, 2005 12:11 pm
Location: Leeds/Manchester, England

Re: Error suppresors?

Post by jayshields »

I don't know what you mean. There's no reason not to check you're not passing zeros into division operations.
User avatar
iFlex
Forum Commoner
Posts: 41
Joined: Sat May 30, 2009 3:44 am

Re: Error suppresors?

Post by iFlex »

What I mean is so I get custom error messages like 000webhost.com they add a small link under the PHP error message, I cant find this in my systems apache folder.
Post Reply