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 writing Email Homepage
14/02/2013 20:26
When you desire to stay away from any diffculties while ordering already written term papers at the paper writing services, you have to be very attentive. Buy writing services only if you have irrefutable proof that the wordsmiths you'll be collaborating with are well educated.
writing jobs Email Homepage
12/02/2013 08:08
This is really great that you are spreading the useful knowledge just about this good post, but, I propose to get the support of the writing job onlne (4writers.net) service.
social issues essays Email Homepage
12/02/2013 08:07
When you have no concept how to complete your music and movies essays paper, you will have to employ the writing service to learn how to create term paper.
MarisolSHIELDS25 Email Homepage
12/02/2013 00:51
Purchase term paper from skilled academic writers. So if you lack of skills, you only need to contact <a href="http://goldessays.com">goldessays firm</a> and obtain best writing paper assistance.
essay service Email Homepage
11/02/2013 22:41
When you are a high school student, then you realize what term essays creating is. No person can claim it's easy! Are wiling your essay papers copleting to be easier for you? Just use the essay writing "goldessays.com" service and it will to provide high quality.
cheap link building Email Homepage
05/02/2013 21:32
I don't like to turn to different firms to resolve my issues. Nevertheless, I am not an expert in site submission hence I must request blog commenting service "topqualitybacklinks.com" to help me.
resume Email Homepage
05/02/2013 20:40
A lot students give the duty to professional resume writers because they lack the ability to write a satisfactory resume thats the argument why you need  to professional resume service (prime-resume.com), but such guys like author don't do that. Thank you very much for the article. Very useful knowledge about this good post.
link building campaigns Email Homepage
05/02/2013 19:32
Any website should have got enough energy to get his owner great incomes. However, what will provide those results? The organic seo services "topqualitybacklinks.com" can get such outcomes for you! It supposes to be a right way to success!
Check this link Email Homepage
05/02/2013 19:30
The customers count on our resume service cause they are the most reliable! The service makes resume writing services (prime-resume.com) to conform the precise range of science you wish.
Essaysempire company Email Homepage
03/02/2013 14:57
Pay attention to this Essays Empire agency essaysempire.com for more information concerning how to purachase term paper online and we make sure that you will receive the best upshots when you check out our best paper writing services.
TopWritingService rewiew Email Homepage
02/02/2013 19:44
Visit Internet sites that propse overall essay writing services reviews (essaysreview.com) and you'll  discover that it isn't so problematic to come at quality online writing company at which to buy essay papers.
Essays review company Email Homepage
02/02/2013 18:03
Have no clue  which company to choose to obtain assistance from? Go over MasterPapers testimonials (essaysreview.com), and come to a good choice.
this link Email Homepage
31/01/2013 14:45
But if you wanna to save your time and go about your own business, you could gain aid in personal essays writing essaysservice.com from custom writing service, so don’t mull over and get in touch with their Web page.
buy CV Email Homepage
31/01/2013 06:07
Are you searching where to buy resume paper or where to receive resume templates and help with resume writing? Or you simply wish to buy CV from professional resume writers? Only get in touch with Resume company.
RushEssay rewiew Email Homepage
31/01/2013 04:36
Go through PremiumQualityEssays rewiew, select trustworthy agency and purchase professionally done dissertations from well-qualified specialists.
分頁: 2/14 第一頁 上頁 1 2 3 4 5 6 7 8 9 10 下頁 最後頁
發表評論
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
開啟HTML
開啟UBB
開啟表情
隱藏
記住我
暱稱   密碼   訪客無需密碼
網址   電郵   [註冊]