Re: Client IP address
| From: | Ernest E Vogelsinger | Date: | Thu, 21 Nov 2002 20:39:25 +0000 |
| Subject: | Re: Client IP address | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-125493@lists.php.net to get a copy of this message | ||
At 21:16 21.11.2002, Ron Smith said:
--------------------[snip]--------------------
>I know this is probably easily solved, but I'm trying to locate the PHP
>function which returns the client's IP address when they request a page
>from the server. I'm having no luck searching the php.net function list.
--------------------[snip]--------------------
You'll find it in the $_SERVER array ($_SERVER['REMOTE_ADDR']). Check out
http://www.php.net/manual/en/reserved.variables.php#reserved.variables.serve
r as there's a lot of useful information in there...
--
>O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/