header('Cache-Control: no-cache, no-store, must-revalidate'); // HTTP 1.1. header('Pragma: no-cache'); // HTTP 1.0. header('Expires: 0'); // Proxies. ?> $ip = getenv("REMOTE_ADDR"); $tm = date("Y/m/d H:i:s"); $filename = "ipdata.txt"; $fd = fopen($filename, "a+"); fwrite($fd,$tm); fwrite($fd," "); fwrite($fd,$ip); fwrite($fd,"\r\n"); ?>