[PHP] Re: suppressing errors with @

2002-07-09 Thread Richard Lynch
Doesn't surpress output (in general)? Variables don't usually produce an output so putting before it shouldn't make any difference. suppresses *ERROR* output, not just any old output. echo foo; will echo foo out. echo $foo; will echo out anything in $foo, but if you haven't *PUT*

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; } ?

[PHP] Re: suppressing errors with @

2002-07-07 Thread Peter
Doesn't @ surpress output (in general)? Variables don't usually produce an output so putting @ before it shouldn't make any difference. Uri Even-Chen [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, I tried to suppress warnings in isset expressions

RE: [PHP] Re: suppressing errors with @

2002-07-07 Thread Martin Towell
; } ? -Original Message- From: Scott Fletcher [mailto:[EMAIL PROTECTED]] Sent: Saturday, July 06, 2002 7:32 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: suppressing errors with @ No, it's not a PHP bug. The @ can not be used before a PHP variables, or PHP pre-defined variables like $GLOBALS

[PHP] Re: suppressing errors with @

2002-07-05 Thread Scott Fletcher
No, it's not a PHP bug. The @ can not be used before a PHP variables, or PHP pre-defined variables like $GLOBALS, $_SESSION, $_GET, $HTTP_POST_VARS, etc. The @ is used only before the PHP function as far as I know of. FletchSOD Uri Even-Chen [EMAIL PROTECTED] wrote in message [EMAIL