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 a research paper Email Homepage
20/08/2012 19:12
When you have a desire to gain cast-iron affirmation of the quality of college papers, I advise you to buy custom writing "essayswriters.com" from number one company.
loan Email Homepage
20/08/2012 16:24
The personal loans are very useful for people, which would like to start their own organization. As a fact, this is not hard to get a consolidation loan.
business loans Email Homepage
20/08/2012 13:08
It's good that people can receive the mortgage loans moreover, it opens up completely new opportunities.
Click here Email Homepage
06/08/2012 11:15
This organization delivers superior resume services. Hence, if you have no idea how to write a resume, would like to buy CV from best resume writers or simply to view resume templates, visit Prime Resume center "prime-resume.com".
up here Email Homepage
06/08/2012 10:05
People trust our resume service cause they are very trustworthy! This corporation makes resume company to suit the precise area of study you wish.
plagiarism check Email Homepage
06/08/2012 09:37
Whether we like it or not, former in our lives, we would require to carry out term papers and other written projects. It is beyond any doubt not clear but very compelling to make a investigate about this post. To do that, you need to read a lot of articles and books, or you can just order some kind of work and then use check for plagiarism (plagiarismsearch.com) accomplished by http://www.plagiarismsearch.com and save your time like some quick help with the American Dream.
Click here Email Homepage
14/06/2012 06:39
We must not forget that we depend on various services and sometimes we should participate in a specific activities. It is not truth that we should spend great endeavors to accomplish great papers uk. Students who know about the essay papers uk service generally have no problems with writing uk issues!
online essays Email Homepage
14/06/2012 04:01
Education system is influenced by educational law. But, university students still have to write academic papers. I think that students should not worry! The essay writing service can offer superb quality of writing! I solve my writing problems in such way as well.
Internet site Email Homepage
14/06/2012 03:07
Visit this Web site and order professional research papers from the qualified agency. We guarantee that you will receive excellent academic writing help.
Writing essays Email Homepage
14/06/2012 03:03
There is a big number of online services where high school students may buy book review essays.
DionneMoss26 Email Homepage
06/06/2012 02:22
My online business is getting well and traffic to my business site is high. All this is just because I select the masters to build a relationship with. I utilize premium site submission stuff at <a href="http://marketingslinks.com/forum_post.htm">forum posting services</a> of high reputation. Thnx that professionals a lot!
need custom term paper Email Homepage
06/06/2012 00:38
I am sure that even the greatest advices will not aid unskilled graduates create supreme papers for college and universities that is why it is better to order essay (writingscentre.com).
custom term paper Email Homepage
05/06/2012 23:50
Graduates that struggle with writing  essays understand that it is nice to buy essay online written by skilled writers.Visit this website "writingscentre.com" if you have to gain good academic writing assistance you need come to this essay writing companies.
how to buy term paper Email Homepage
30/05/2012 19:44
Positive feedback of other customers that are come-at-able on the net regularly allow me to understand what writing company to choose so as to buy research paper written bestcustompapers.com according to the up-to-date standards.
purchase research papers online Email Homepage
30/05/2012 18:00
As the the greater part of the sophomores, I go for gathering information on how to buy term paper bestcustompapers.com as tasks generated by real masters will be more beneficial for me.
分頁: 8/14 第一頁 上頁 3 4 5 6 7 8 9 10 11 12 下頁 最後頁
發表評論
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
開啟HTML
開啟UBB
開啟表情
隱藏
記住我
暱稱   密碼   訪客無需密碼
網址   電郵   [註冊]