note 30326 deleted from reserved.variables by didou
| From: | didou@php.net | Date: | Tue, 05 Aug 2003 15:41:25 +0000 |
| Subject: | note 30326 deleted from reserved.variables by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-53420@lists.php.net to get a copy of this message | ||
Note Submitter: imho@auspantheon.com
----
[Editor's Note]: This will grab the requesting IP address, this does not always mean the
user's IP address, it could be a proxy.
-------------
A quick snippet to effectivly and surely grab a users IP address:
$userip = ($_SERVER['X_FORWARDED_FOR']) ? $_SERVER['X_FORWARDED_FOR'] :
$_SERVER['REMOTE_ADDR'];