#33477 [Bgs]: $_ENV['REMOTE_PORT'] not valid
| From: | spiderman_gtp at hotmail dot com | Date: | Sun, 26 Jun 2005 14:57:31 +0000 |
| Subject: | #33477 [Bgs]: $_ENV['REMOTE_PORT'] not valid | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-81032@lists.php.net to get a copy of this message | ||
ID: 33477
User updated by: spiderman_gtp at hotmail dot com
Reported By: spiderman_gtp at hotmail dot com
Status: Bogus
Bug Type: Network related
Operating System: Win2K AS
PHP Version: 5.0.4
New Comment:
fair enough ... so how would i SET the variable on the webserver? I
don't recall setting the 'REMOTE_ADDR' on the webserver, and it works
fine ... all i am looking for is determining the client request port
number .. perhaps this is not a bug, as you say, but it is listed in
the documentation and there is no mention of set or not set ... is this
an IIS setting issue?
Previous Comments:
------------------------------------------------------------------------
[2005-06-26 12:51:13] sniper@php.net
If it's not set then it's not set by the webserver.
Not PHP problem since PHP only fills the $_ENV variable with the
environment variables which actually are SET.
------------------------------------------------------------------------
[2005-06-26 01:58:43] spiderman_gtp at hotmail dot com
Description:
------------
$_ENV['REMOTE_ADDR'] returns the correct value of the IP of the remote
user,
$_ENV['REMOTE_PORT'] generates:
Notice: Undefined index: REMOTE_PORT in ...
Reproduce code:
---------------
see description .. i also tried $HTTP_ENV ... and $_SERVER and none
seem to work
Expected result:
----------------
expected to return the remote users port number
Actual result:
--------------
Notice: Undefined index: REMOTE_PORT in ...
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33477&edit=1