Matthias Watermann wrote:
> On Mon, 05 May 2008 11:51:09 +0100, Geoff Cox wrote:
>
>> [...]
>>> (There's no need for those "$result" variables: Why keep the same value
>>> in memory multiple times?) Do _not_ assume all the expected CGI
>>> arguments are there actually but always check that.
>> Matthias,
>>
>> I'm not clear what you mean above re the "no need for those "$result"
>> variables" - could you please explain?
>
> As I've shown in my validation examples you can "clean" the CGI arguments
> directly in the global "$_GET" list. I consider it a waste of memory to
> duplicate those values. But just was just a hint. The other points were
> more important.
>
>
You can. But I agree with Rik. It is better to consider the $_GET and
$_POST values to be read-only.
Which is more important - maintainability and serviceability of the
application, or 50 bytes of memory?
But this is also a PHP question, not a MySQL one.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================