Forum Moderators: coopster
<? if (getenv(HTTP_X_FORWARDED_FOR)) $ipaddress = getenv(HTTP_X_FORWARDED_FOR); else $ipaddress = getenv(REMOTE_ADDR); ?>
Thanks.
I tried it, and it works fine (well changed the <? to <?php ) :)