$time = date("M j G:i:s Y");//時間
$ip = getenv('REMOTE_ADDR');//remote ip
$userAgent = getenv('HTTP_USER_AGENT');//user browser
$referrer = getenv('HTTP_REFERER');//http rererer
$query = getenv('QUERY_STRING');//url query string
$msg = "IP: " . $ip . " TIME: " . $time . " REFERRER: " . $referrer . "
SEARCHSTRING: " . $query . " USERAGENT: " . $userAgent;writeToLogFile($msg);
writeFile($msg);
沒有留言:
張貼留言