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
Developer's Forums:

>>> "Matt Babineau" <[EMAIL PROTECTED]> 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
p: 603.943.4237
w:  <> 
PO BOX 601
Manchester, NH 03105

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to