|
// Who's Been Here? v1.0
// by Webboy (Drop-D)
// email: sorry, decided not to give this.
// You can use this script for any purpose.
// Promote open source code!
$fp = fopen("ipinfo.txt","r");
$ippost = fread($fp,15);
fclose($fp);
$name = gethostbyaddr($ippost);
echo ' The visitor before you was from: '.$ippost.'
(' .$name.')';
$ip = getenv("REMOTE_ADDR");
$fp = fopen("ipinfo.txt","w");
fwrite($fp,$ip);
fclose($fp);
?>
|