note 79591 deleted from function.getenv by betz
| From: | betz@php.net | Date: | Tue, 04 Dec 2007 23:18:53 +0000 |
| Subject: | note 79591 deleted from function.getenv by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-132825@lists.php.net to get a copy of this message | ||
Note Submitter: briank
----
i had trouble getting ANY of these $_SERVER things to return the client IP. i kept getting the
server IP. this is the ONLY thing i found that worked for me to get the client's IP address:
$joe = apache_request_headers();
echo $joe['PC-Remote-Addr'];