this is a major problem , $_SERVER['HTTP_X_FORWARDED_FOR'] should get the ip 
being the isp proxy , but some proxies including the stupid windoze one we 
have at work will hide the ips behind it, so its rendered useless

>===== Original Message From Justin French <[EMAIL PROTECTED]> =====
>$_SERVER['REMOTE_ADDR'] will contain the remote user's IP address IF it is
>set by the user agent (browser).
>
>It's also worth noting that this IP address could be faked, could be rotated
>by their ISP on a request-by-request basis (eg all AOL users), could be that
>of their firewall or network gateway, etc etc.
>
>It's fine to log it, but don't rely on it for future visits, or anything
>like that :)
>
>
>Justin
>
>
>on 28/03/03 5:04 AM, Joakim Larsson ([EMAIL PROTECTED]) wrote:
>
>> Hello,
>>
>> Is there a command in php that would logg the ip address of the user 
viewing
>> the php file.
>> I need someway of finding out who posted the form.
>>
>> thanx
>>
>>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to