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有點風險,最好就是先備份一下原本的文件才作改動啦。
Essay Topic Email Homepage
31/08/2012 22:19
You never knew how to purchase term paper help. In this case look here "exclusivepapers.com" and our company will deliver You great help with essay writing.
do my essay Email Homepage
31/08/2012 21:16
I heard just about modernization in term papers. I wanted to see the Research Paper Tips exclusivepapers.com created by up-to-date experts.
custom writing help rev Email Homepage
30/08/2012 08:14
In case you are short of time to write your  write-ups on your own, get in touch with the companies which talented crew will propose you academic writing support. Try this home page and receive the nice chance to buy papers produced from square one.
creative essay writing Email Homepage
30/08/2012 06:53
Students life is not a fiction and academic progress can't be reached itself. You have to act if are willing to approach your aim! Even when you buy research papers no plagiarism bestwritingservice.com, then you can do some steps to realize your dreams.
paper services Email Homepage
30/08/2012 05:40
If you have no time to make your  write-ups by yourself, contact with agencies which creative team will suggest you essay service. Go up here (bestwritingservice.com) and receive the great chance to buy cheap custom essay composed from the top.
online papers Email Homepage
28/08/2012 05:44
Are you looking for high quality paper writing service? Look here and buy essays from the recommended firm.
buy essays uk Email Homepage
28/08/2012 04:20
In case you are short of time to finish your  write-ups on your own, welcome to the companies which talented crew will propose you academic writing help. Order essays up here and receive an opportunity to buy cheap custom essay composed from the ground up.
custom thesis Email Homepage
28/08/2012 03:34
Interesting  topic just about study! Without any doubts each of us faced whatever problems with thesis service (dissertationmasters.com). It is especially unenviable when you get another benefit in life. I have had the aforementioned troubles until I have found a company provide skilled writing services.
write my papers Email Homepage
28/08/2012 02:08
Owing to the active way of life students prefer to purchase English research paper than write their writing tasks by themselves. This is the Internet site "best-writing-service.com" you should visit and I guarantee that you get excellent term paper writing support.
OchoaRoslyn Email Homepage
28/08/2012 01:33
This is the best exposition I have got of all time seen! Outstanding item around college! When I have studied at scholl I also faced troubles of do my term and thesis work, because I had a job and private interests in life, and I never had pretty much time to publish  essays. And so my bud inform me about <a href="http://dissertationmasters.com">thesis writing</a>! From that time my life has become brighter!
academic writing help Email Homepage
24/08/2012 14:54
A interesting theme will stay in society’s minds all the time. If you go forward with your investigation, you probably, would be hired by essay writing service (supreme-essay.com). Just because you only have the skills to accomplish the written essays.
write my academic paper Email Homepage
24/08/2012 13:47
Do you understand a correct way to buy custom essays? That's easy! Just login at the academic writing site and complete the order form.
Web page Email Homepage
23/08/2012 11:27
All your thoughts are about academic progress? Have got only an essay paper to manage with? Can't start it? Not only you are in such a situation! You are welcome to use the custom buy paper services. Your problems will vanish rapidly!
paper services Email Homepage
23/08/2012 10:14
If your written assignment is pretty complex to implement, visit Premium Qualityessays company (premiumqualityessays.com) to save your precious time and buy a research paper! Our group of expert writers is regularly willing to give perfect custom written essay help!
buying essays online Email Homepage
20/08/2012 19:58
Are not able to figure out which essay writing company entrust with your essay paper writing? This is the perfect place to get in touch with people who know how to order an essay essayswriters.com online.
分頁: 7/14 第一頁 上頁 2 3 4 5 6 7 8 9 10 11 下頁 最後頁
發表評論
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
開啟HTML
開啟UBB
開啟表情
隱藏
記住我
暱稱   密碼   訪客無需密碼
網址   電郵   [註冊]