Re: Reserved var for checking remote IP address
| From: | Spamm Trappe | Date: | Thu, 17 Apr 2008 01:50:21 +0000 |
| Subject: | Re: Reserved var for checking remote IP address | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-273135@lists.php.net to get a copy of this message | ||
On Wed, 16 Apr 2008 13:26:09 -0500, Javier Huerta wrote:
>>>""Daniel Brown"" <parasane@gmail.com> wrote:
>>
>>> Is there a reverved variable that can be used to check
>>> the remote IP address of the computer hitting your web page?
>>
>> <?php
>> $_SERVER['REMOTE_ADDR'];
>> ?>
>
> Wow that was quick, thanks Daniel.
Reviewing what is at hand via
<?php phpinfo(); ?>
from time to time is useful.