PHPCMS廣告導致廣告統計表文件過大的解決方案
adsincludeads_place.class.php
function show($placeid) 塊
注釋掉 $this->db->query("INSERT INTO ".DB_PRE."ads_stat (`adsid`, `username`, `ip`, `referer`, `clicktime`, `type`) VALUES ('$ads[adsid]', '$_username', '$ip', '$this->referer', '$time', '0')");
和
$this->db->query("INSERT INTO ".DB_PRE."ads_stat (`adsid`, `username`, `ip`, `referer`, `clicktime`, `type`) VALUES ('$ads[adsid]', '$_username', '$ip', '$this->referer', '$time', '0')");
這樣就會只統計點擊的 表也不會大了
我采用的就是這個方法,值得推廣 :hehe
官方可以考慮新版本中后臺加上“是否統計展示”
上一篇 php 關聯數組判斷是否為空