Andy Hassall <andy@andyh.co.uk> wrote or quoted:[color=blue]
> On Fri, 21 Nov 2003 14:22:34 GMT, Tim Tyler <tim@tt1lock.org> wrote:[/color]
[color=blue][color=green]
>>I've been experimenting with using:
>>
>> error_reporting (E_ALL);
>>
>>However, lines like this report problems when the variable is missing:
>>
>> $open = $_GET['open'];
>>
>>Is there some way to do that with error reporting left turned on -
>>that *doesn't* give a warning?[/color]
>
> As well as the checks with isset posted by others, there's:
>
> $open = @$_GET['open'];
>
> But only if NULL is an acceptable value for you to use.[/color]
I guess if the syntax sugar is there anyway, you might as well use it.
Thanks very much to those who responded - it's appreciated.
--
__________
|im |yler
http://timtyler.org/ tim@tt1lock.org Remove lock to reply.