Page 1 of 1

Error suppresors?

Posted: Sun Jun 07, 2009 10:09 am
by iFlex
Anybody know any error supressors for Divison By Zero?

Thanks, Im a noob when it comes to this...

Re: Error suppresors?

Posted: Sun Jun 07, 2009 10:12 am
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.

Re: Error suppresors?

Posted: Sun Jun 07, 2009 10:20 am
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.

Re: Error suppresors?

Posted: Sun Jun 07, 2009 10:46 am
by jayshields
I don't know what you mean. There's no reason not to check you're not passing zeros into division operations.

Re: Error suppresors?

Posted: Sun Jun 07, 2009 11:20 am
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.