Re: getting a user's ip address
| From: | Mike Eheler | Date: | Thu, 29 Nov 2001 19:37:17 +0000 |
| Subject: | Re: getting a user's ip address | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-76086@lists.php.net to get a copy of this message | ||
Your IP address is <?= $HTTP_SERVER_VARS['REMOTE_ADDR'] ?>
That is all case sensitive too, by the way.
Mike
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 thanks Ken Savage http://kensavage.com