23/03/2006 00:35
其實這個問題已經困擾了我好幾個月了,不過2.0暫時取消了1.7的訪問歷史統計,所以到最近才發現到。

某次當我用後台的sql來查看每天的造訪人數
(方法是在資料維護->MySQL裡,輸入select * from [db]history),
發現了以下的情況(節錄)︰

20060307 1587
19700101 551
19700101 143
20060308 736
19700101 154
19700101 190
19700101 93
20060309 904
19700101 403
20060310 946
20060311 1404
20060312 1458


左手邊是日期,而右手邊是每天的造訪人數。奇就奇在中間多了一些19700101的日期。原本bo-blog在每天的0:00時,把"今日造訪"的數字歸零,重新計數,但現在就在一天裡的某個時候自動歸零,而且情況很隨機,有時幾天才發生一次,但有時又一天發生十多次,把統計都打亂了。

開始時還擔心是server有事,不過後來發覺其他人也有類似問題(只是我的比較嚴重),應該不關server的事。現在惟有靜待bob大的修正了。


多得本SERVER的守護神——KERO大神的幫助,終於把這個BUG修復了。
方法很簡單,只要在root的global.php裡,找到function writetofile(應該是在第246行),然後把整個function刪掉,在原本的地方補上以下這段就成了。

function writetofile ($filename, $data) { //File Writing
  [email protected]($filename.'lock',"w");
  flock($filenum2,LOCK_EX);
  [email protected]($filename.'tmp',"w");
  if (!$filenum) {
    return false;
  }
  $file_data=fwrite($filenum,$data);
  fclose($filenum);
  rename($filename.'tmp',$filename);
  fclose($filenum2);
  return true;
}

不過修改global.php有點風險,最好就是先備份一下原本的文件才作改動啦。
buy critical essays Email Homepage
23/05/2012 01:38
Other web pages suggested individual biology essay help on each potential problem about writing homework assignments.
justice essays Email Homepage
22/05/2012 23:54
I explored the site and came across a lot of analysis essays sample that showed proficiency  of their staff.
write my term paper for me Email Homepage
22/05/2012 13:15
Somebody told you that you are laze because you cannot create your essay? Don't listen to! Even talented people, sometimes, cannot manage with simple academic papers writing assignments and ask: " where can I buy papers online ". Hence, there's not a crime when you do so.
custom essays UK Email Homepage
22/05/2012 09:08
That is undisputable that essays completing complications bother all students a lot. Nevertheless, this problem is not as serious as it looks like! Thus, do not worry about it and buy written essays online.
custom written essays Email Homepage
22/05/2012 07:20
Are not willing to be a looser? Want to prove your good name? To buy online research paper is a right way to relize your wishes.
houses Email Homepage
13/05/2012 20:56
Hey Saying thanks will certainly not simply be sufficientThis sort of clever work and coverage! Keep up the good worksThank you!
cheap essay writing service Email Homepage
12/04/2012 20:09
Prices set due to customers' requirements. Students order lots of essays lastly. Thence, we have to see raising of costs. Nonetheless, I think, it is real to detect the reaction paper writing company , which will be able to provide good prices for custom academic papers.
term paper services Email Homepage
12/04/2012 19:16
Writing companies are a kind of commercial! They get guys a real chance to buy term papers of the highest quality. Thus, they're reputed because of it!
custom term paper Email Homepage
12/04/2012 17:09
You ought to feel happy periods of your life. However, lots of people do not have some free time just because of academic essays creating! Not all students acknowledge about a possibility to buy custom research papers. That's good to know someone who will support with academic essays accomplishing!
buy essays Email Homepage
09/04/2012 23:37
That can be not healthy for you to take all stress of tem essays writing. One can be not strong enough to manage with everything. Luckily, qualified custom writing firms give you a good chance to buy essays.
buy custom essay papers Email Homepage
09/04/2012 21:03
That is well known that great academic results seem to be not easy to have. If you buy custom essays finished by experts, you should definitely reach an academic paramount.
ChrisPate20 Email Homepage
17/03/2012 08:54
A lot of students choose to <a href="http://www.gogetessays.com">buy custom essay papers</a> using the custom writing services close to this good post.
henry Homepage
01/03/2012 18:48
Thank you for such an investment surprising because it is what most people are looking for. Hopefully this will give benefits to job seekers.Keep things in place increasingly in the future of our help. dissertation proposal writing
wqrvb q Email
21/02/2012 16:33
reverse cell phone lookup Email Homepage
18/02/2012 04:41
Should you run into an instance where you may need to discover the identity of the owner of a Sprint cell phone number, all you need to do is a Sprint reverse phone lookup.
分頁: 9/14 第一頁 上頁 4 5 6 7 8 9 10 11 12 13 下頁 最後頁
發表評論
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
開啟HTML
開啟UBB
開啟表情
隱藏
記住我
暱稱   密碼   訪客無需密碼
網址   電郵   [註冊]