predefined variable use
| From: | Philip Olson | Date: | Thu, 04 Apr 2002 03:19:53 +0000 |
| Subject: | predefined variable use | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969343981@lists.php.net to get a copy of this message | ||
All throughout the manual predefined variables are used.
The most common format (currently) is simply relying on
register_globals and prepending a $ to them, such as
$PHP_SELF and $DOCUMENT_ROOT. Because 4.2.0 defaults
register_globals off, this will change.
My question is, do we use $HTTP_SERVER_VARS or
$_SERVER for these. My opinion is we use $_SERVER
yet not mention it's specific to 4.1.0+ everywhere
as that's a ton of little notes. Too many. But,
this is still an issue, how should it be addressed?
If $_SERVER simply linked to the superglobals page,
that should be enough, right? Or can we easily do
that, how? Or is it time to not worry about it.
Regards,
Philip Olson
p.s. imho predefined server variables should remain
registered by default in 4.2.0 and beyond. ;)