Re: What does register_globals do?

From: Date: Mon, 22 Jul 2002 20:20:50 +0000
Subject: Re: What does register_globals do?
Groups: php.general 
Request: Send a blank email to php-general+get-108932@lists.php.net to get a copy of this message
My way of thinking about is: With register_globals ON, all variables defined are available anywhere in the script (with the exception of functions and classes, unless defined otherwise), whereas with register_globals OFF, they are only available through the superglobals for the respective variable types. I'm sure there's a much better way to explain it, but it works for me :o) Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ >>> "Matt Babineau" <matt@criticalcode.com> 07/22/02 03:59PM >>> I have never had a clear understanding about what this does, the php.ini has an explanation but being newer to PHP I don't understand it very well. Could someone prodive a human explanation about what register_globals does and why it is so important? Matt Babineau MCWD / CCFD ----------------------------------------- e: <mailto:matt@criticalcode.com> matt@criticalcode.com p: 603.943.4237 w: <http://www.criticalcode.com/> http://www.criticalcode.com PO BOX 601 Manchester, NH 03105

« previous php.general (#108932) next »