Mark一下
function WriteIPMark($strFile) { $ip=$_SERVER["REMOTE_ADDR"]; $str_date = date('Y-m-d H:i:s',time()); $fp = fopen($strFile, "a"); if($fp) { fwrite($fp,$ip); fwrite($fp," "); fwrite($fp,$str_date); fwrite($fp,"\r\n"); } fclose($fp); }
Mark一下
function WriteIPMark($strFile) { $ip=$_SERVER["REMOTE_ADDR"]; $str_date = date('Y-m-d H:i:s',time()); $fp = fopen($strFile, "a"); if($fp) { fwrite($fp,$ip); fwrite($fp," "); fwrite($fp,$str_date); fwrite($fp,"\r\n"); } fclose($fp); }
本文是由用户编写整理,所有内容的版权归原作者所有。如果侵犯了您的权益,请联系我删除