时间:2021-07-01 10:21:17 帮助过:25人阅读
代码如下:
// 插入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);
以上就介绍了shopex官网 用PHP为SHOPEX增加日志功能代码,包括了shopex官网方面的内容,希望对PHP教程有兴趣的朋友有所帮助。