时间:2021-07-01 10:21:17 帮助过:11人阅读
// 插入SHOPEX首页index.php代码块中
// 查看PHP中的变量其实挺简单的
// 用一个函数 phpinfo() 足以查看
$fp = fopen("log.txt","a+");
fwrite($fp,date("Y-m-d H:i:s"));
fwrite($fp,"\t");
fwrite($fp,$_SERVER['REMOTE_ADDR']);
fwrite($fp,"\t");
fwrite($fp,$_SERVER['HTTP_X_REWRITE_URL']);
fwrite($fp,"\t");
fwrite($fp,$_SERVER['HTTP_USER_AGENT']);
fwrite($fp,"\t");
fwrite($fp,$_SERVER["HTTP_REFERER"]);
fwrite($fp,"\n");
fclose($fp);