ID: 11833
Updated by: danbeck
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: Documentation problem
Operating system:
PHP Version: 4.0.6
Assigned To:
Comments:
It's very hard to understand what you are saying... please forgive us if we don't
quite get your point.
Are you saying that the documentation is not clear as to which variables you can
access using the $HTTP_ENV_VARS and $HTTP_SERVER_VARS. If this is what you are
asking, then please read the 3rd paragraph and the note that follows at:
http://php.net/manual/en/language.variables.predefined.php
The manual can not be an exhaustive resource for all predefined variables. The best
way to see exactly what is available to you is the check the output of the phpinfo()
function. It describes everthing you would need to know about the PHP environment and
it's predefined variables in gratuitous detail.
Also, you specifically mention $PHP_SELF. You say that it's not intuitive to be in
HTTP_SERVER_VARS? But it is.. it has noting to do with the system environment
($HTTP_ENV_VARS), but everything to do with the server environment. It's the filename
part of the URI, not the actual filename on the server.
Previous Comments:
---------------------------------------------------------------------------
[2001-07-02 07:13:33] [EMAIL PROTECTED]
I don't agree.
I just disable register_global by setting it Off.
Now I can't acces simply $PHP_SELF - returned string is empty.
When I get $HTTP_SERVER_VARS["PHP_SELF"], the return string is such as the $PHP_SELF
with register_global "On".
Maybe it isn't docs bug, but devel bug?
---------------------------------------------------------------------------
[2001-07-02 07:06:16] [EMAIL PROTECTED]
$PHP_SELF is not an environment variable, nor a server variable, it is a special PHP
variable, so it wont be registered in any arrays you listed
---------------------------------------------------------------------------
[2001-07-02 06:53:24] [EMAIL PROTECTED]
There isn't enough information, from which assosiative array we can acces to
predefined variables, when register globals is not set. Espesially $PHP_SELF isn't in
$HTTP_ENV_VARS but $HTTP_SERVER_VARS, which mean not intuos (in my opinion)
localization.
Regards
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11833&edit=2
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]