Re: getting a user's ip address
| From: | John S. Huggins | Date: | Thu, 29 Nov 2001 19:37:21 +0000 |
| Subject: | Re: getting a user's ip address | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-76085@lists.php.net to get a copy of this message | ||
On Thu, 29 Nov 2001, Ken Savage wrote:
>-Super new to PHP but I'm putting in the effort to learn quickly.
>-How would I output the user's IP address in a php file.
>-
>-I want the webpage to say...
>-
>-Your IP address is xx.xx.xx.xx
Try finding it in these variables:
$HTTP_SERVER_VARS["REMOTE_ADDR"]
or
$REMOTE_ADDR
John
**************************************
John Huggins
VANet
7101 Oriole Avenue
Springfield, VA 22150
703-912-6453
703-912-4831 fax
jhuggins@va.net
http://www.va.net/
**************************************