Re: How do I squelch warnings (without editing php.ini)?
| From: | Curt Zirzow | Date: | Mon, 15 Sep 2003 22:04:22 +0000 |
| Subject: | Re: How do I squelch warnings (without editing php.ini)? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-162673@lists.php.net to get a copy of this message | ||
On Mon, 15 Sep 2003 13:20:05 -0400, Dan Anderson <dan@mathjunkies.com> wrote:
I am running a script that occasionally utters a few warnings when the user does something dumb (but it does not kill the script). Is there a way to turn off warnings within a script? I really don't want my users to see them.You can lazily suppress errors on the fly like so @call_func(); the @ will suppress error messages being sent directly to the browser. Curt