note 35163 added to function.getenv
| From: | Bob at rack1 dot php dot net | Date: | Thu, 21 Aug 2003 17:59:32 +0000 |
| Subject: | note 35163 added to function.getenv | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-54832@lists.php.net to get a copy of this message | ||
PHP 4.1.2 + Win2K IIS5
getenv("REMOTE_ADDR") didn't work.
getenv("HTTP_CLIENT_IP
getenv("HTTP_X_FORWARDED_FOR
$HTTP_REMOTE_ADDR
All these above did not either. Return nothing.
Is there any config I should change on IIS or any solution for this function? I need to log
user's ip for security reason.
Thanks.
----
Manual Page -- http://www.php.net/manual/en/function.getenv.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+35163
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+35163&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+35163&report=yes