01<?php 02 03// displays the current reported IP adress of the user 04echo' 05<p> 06 your current IP address is '.$_SERVER['REMOTE_ADDR'].' 07</p>'; 08 09// tries to find the hostname by looking up the IP - has an evil long timeout though 10echo' 11<p> 12 your current hostname (if any) is '.gethostbyaddr($_SERVER['REMOTE_ADDR']).' 13</p>'; 14 15?>