Re: Using register_globals
| From: | Lars Torben Wilson | Date: | Thu, 05 Jun 2003 08:38:24 +0000 |
| Subject: | Re: Using register_globals | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-150306@lists.php.net to get a copy of this message | ||
On Thu, 2003-06-05 at 01:09, SLanger@spirit21.de wrote:
> One thing that hasn't been mentioned explicitly about register_globals
> turned to off is the readablity of the code and thus the reuse of code.
> When you use GET, POST, etc... everybody reading your script knows exactly
> where the data is coming from and can make a fairly good assumption to its
> use. On the other hand when using register_globals on, you have no way of
> knowing without having to step through the whole script.
> And lets be honest, most developers tend to be sloppy on commenting their
> code since they think it is perfectly self explanatory. (including me btw)
>
>
> Another issue I haven't read so far is that making your scrip work when
> register_globals is off makes it to be more compatible since scripts using
> GET and POST array should still work on systems that have register_globals
> turned on.
>
> Regards
> Stefan
At the risk of sending a 'me too' message to the list, I would just
like to say that I think these are excellent points.
Torben
--
Torben Wilson <torben@php.net> +1.604.709.0506
http://www.thebuttlesschaps.com http://www.inflatableeye.com
http://www.hybrid17.com http://www.themainonmain.com
-----==== Boycott Starbucks! http://www.haidabuckscafe.com ====-----