Especially like to know which spiders to visit the site, the frequency of visits, pages, ordinary site statistics are not resolved.
Although I know a little about PHP, but by virtue of. NET development experience, with the help of Baidu is still very quickly completed, although simple, everyone mo laugh.
Copy CodeThe code is as follows:
Insert Shopex Home index.php code block
It's really easy to see the variables in PHP.
With a function phpinfo () enough to view
$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);
http://www.bkjia.com/PHPjc/322111.html www.bkjia.com true http://www.bkjia.com/PHPjc/322111.html techarticle especially like to know which spiders to visit the site, the frequency of visits, pages, ordinary site statistics are not resolved. Although I know a little about PHP, but by virtue of. NET development ...