error_reporting(0); $counterip = date("Y.m.d H:i")." | ".$_SERVER['REMOTE_ADDR']." | ".$_SERVER['HTTP_HOST']." | ".$_SERVER[REQUEST_URI]." | ".$_SERVER['HTTP_REFERER']."\n"; $countipfile = fopen("stats.log","a+"); flock($countipfile, 2); fwrite($countipfile, $counterip); fclose($countipfile); ?>