Re: Warning messages
| From: | Wojciech Owczarek | Date: | Mon, 16 Dec 2002 18:40:58 +0000 |
| Subject: | Re: Warning messages | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-17441@lists.php.net to get a copy of this message | ||
#1) You should do all possible to avoid getting that in you r scripts (you
know, checking wether file exists etc etc), not simply disabling it cause
it's a messy way really, and can fill up logs with that stuff (which is not
quite good when using a server that you don't own). Also, using @function
instead of function suppressess it's all warning/error output.
Anyway, here's what You wanted:
error_reporting = E_ALL & ~E_WARNING
stops errormsg output for warnings.
also
error_reporting = E_ALL & ~E_WARNING & ~E_NOTICE
would be even better cause it would kill all those annoying 'NOTICE: xxx
unexistant variable' etc things.
guess that could help.
-----------
owczi@counter-strike.pl the humble sheep