$ip = GetHostByName($REMOTE_ADDR)."\n";
$file="www.angelfire.com/pa5/weck9406/data.txt";// full path to the data.txt file
$data= @fopen($file, "a") or die ("couldn't open file");
@fwrite($data, $ip) or die ("couldn't open file");
fclose ($data);
?>
You have reached a restricted area!
Your ip number is
echo "$ip";?> and it has been registered in our log.
If you would like access this area of our site you must applyhere