[ 2012/10/19 18:09 | by 孤城浪子 ]
|
$userip = ($_SERVER['X_FORWARDED_FOR']) ? $_SERVER['X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR'];
$hanlder=fopen($file,"ab+");
fwrite($hanlder,$userip.date("Y-m-d H:i:s").$POST."\r\n");
fclose($hanlder);
这样输出格式为 IP+时间+POST内容
内容:分析的很透彻,很欣赏你的看法,学习了。