Re: [PHP] Re: suppressing errors with @

2002-07-09 Thread Richard Lynch
I use it in front of variables (never tried it on $GLOBALS, etc though) eg: (using register_globals = on thingo - hey don't blame me, it's the tech guys who have it on, and there's too much legacy code to turn it off :( - anyway) ? if ($var) { echo Yep, var is there; } else { echo nope; } ?

RE: [PHP] Re: suppressing errors with @

2002-07-07 Thread Martin Towell
I use it in front of variables (never tried it on $GLOBALS, etc though) eg: (using register_globals = on thingo - hey don't blame me, it's the tech guys who have it on, and there's too much legacy code to turn it off :( - anyway) ? if (@$var) { echo Yep, var is there; } else { echo nope; }