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有點風險,最好就是先備份一下原本的文件才作改動啦。
article submission sites Email Homepage
20/11/2012 13:39
There are a lot of online sites that offer their link building issues. Nevertheless, we only can offer professional paid directory submission servicecheap directory submission service in the web!
technology essays paper Email Homepage
20/11/2012 11:35
Students’ life time is really interesting thing and from time to time people have to select one only thing at one time, then you are lack of time to do something else. In fact, different persons should select between job and art essay paper creating. In such situation, we recommend to search for the good academic essay writing service to order the free essays at.
miscellaneous essay Email Homepage
20/11/2012 10:15
Students’ life time is really interesting issue and sometimes people have to do one only action at one time, then you have not a long time to work on some else stuff. Sometimes, students should select 'tween work and middle east essay paper finishing. In such case, we offer to find the professional academic essay writing service to order the research papers at.
professional seo company Email Homepage
20/11/2012 09:55
Using our organic seo service (cheap-link-building.com), people need to understand that website SEO is several times more efficient than other kinds of commercial. Moreover, we always propose very good discount packages for our permanent clients!
seo firm Email Homepage
01/11/2012 15:48
Submitting articles cannot be done by usual guys. Optimization is a unique system that will not be comprehended by everyone! Just only article submission service can do submission work very effectively. Thus, think very well what way for your internet site do you opt for!
web site submission service Email Homepage
01/11/2012 14:25
Your sales can depend on your site's PR! You cannot be a successful business owner till the time your page rank is low! The seo link building services can solve all these! Specialists know mehods to raise page ranks. Moreover, you would not have to do anything yourself!
MillerTHERESA Email Homepage
01/11/2012 06:47
All people come to <a href="http://www.4writers.net">writing for money</a> service, with the purpose to required facts referring to this good post.
article submission Email Homepage
20/10/2012 04:32
In fact, websites owners attempt to find cheap seo packages (4submission.com). That really can help to optimize traffic! Moreover, our organization can provide submit articles of good quality!
link building expert Email Homepage
20/10/2012 02:46
You need to advertize your online business actively, just because your sales rely on it! Naturally, the respected posting forum "4submission.com" provider can assist you if you ask!
thesis Email Homepage
10/10/2012 12:54
That topic referring to this topic seems to be good enough! Thus scholars not should finish the thesis writing "topthesis.com" and thesis research by their own, they can get your assistance.
custom term paper writing service Email Homepage
10/10/2012 12:45
Press here marvelousessays.com with excellent essay writing services and don’t miss a chance to buy custom essay.
dissertation Email Homepage
10/10/2012 11:57
Very often to receive the dotoral degree you should purchase format thesis referring to this good post and buy thesis (topthesis.com).
help me write my essay Email Homepage
10/10/2012 11:50
The world includes incredible issues. As for me, a chance to turn to essay writing services is amazing. We ought to esteem all that our life gets us!
check this link Email Homepage
10/10/2012 10:31
At this moment students, who feel a need to buy academic papers, are able to refer to custom essay writing services reviews best-writing-services.com of the bureaus that function in this area.
up here Email Homepage
10/10/2012 10:30
Thank you, it's very amazing information about this topic it might be very hospitable for students. Recently i needed resume writing services "marvelousresume.com". To my admirable surprise, resume was divine the price I paid for it.
分頁: 4/14 第一頁 上頁 1 2 3 4 5 6 7 8 9 10 下頁 最後頁
發表評論
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
開啟HTML
開啟UBB
開啟表情
隱藏
記住我
暱稱   密碼   訪客無需密碼
網址   電郵   [註冊]