note 34350 added to function.getenv
| From: | webmaster at shantism dot com | Date: | Thu, 24 Jul 2003 13:54:46 +0000 |
| Subject: | note 34350 added to function.getenv | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-52572@lists.php.net to get a copy of this message | ||
Situation:
A Network with InternetIp 254.123.123.123
A computer on the network 192.168.1.23 (a local ip)
Script:
$REMOTE_ADDR = 254.123.123.123 (This is correct)
When i run the same script on a secure site (https)
$REMOTE_ADDR = 192.168.1.23 (Useless)
While ip logging is much more interesting for your secure site.
Logging localips doesn't make any sence.
Did do PHPinfo on the https but there is not any env that shows 254.123.123.123
----
Manual Page -- http://www.php.net/manual/en/function.getenv.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34350
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34350&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34350&report=yes