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有點風險,最好就是先備份一下原本的文件才作改動啦。
i05lw10vn Email Homepage
26/12/2011 03:27
According to the national early warning systems,Spyder Mens Jackets Black, he continued,Spyder Mens Jackets, cereal production has increased in comparison with the average of five years Rückl? Frequently,Spyder Gloves Black Grey Mens, Mauritania and Chad,Spyder Gloves Mens, which showed a deficit of more than 50 percent compared to a? last year.
National VORRE-run are found? Dangerous for low w? While the prices of some important crops up to 40 percent h? Ago as an average of 5 years. "
dissertation Email Homepage
25/12/2011 09:14
Sometimes to receive the PhD level you have to get thesis mba related to this post and dissertation writing.
essay writing services Email Homepage
25/12/2011 08:34
Fantabulous custom research papers generally includes prime conceptions, understandablywritten thoughts, and supportive evidence. You can be assuredyou are getting superb quality of work available from adept essay writing services.
link building company Email Homepage
23/12/2011 09:26
Your Business depends on your online sales! You will not be a successful online business owner till the time your page rank is not very high! The link building package service will resolve all that! Specialists understand systems to optimize traffic. Furthermore, you will not need to perform something yourself!
Chemistry Essay Email Homepage
22/12/2011 02:56
What about economy world crisis? Would it be one more splash of it? I just worry about the prices for Geography Essay creating. I utilize coursework writing options frequently.
thesis Email Homepage
22/12/2011 02:44
The right way to test the quality of the thesis writing services is to purchase the famous example of thesis connecting with this good post in custom dissertation services.
writing jobs Email Homepage
20/12/2011 00:15
If I were you, I will find professional writer job service to receive more very hot thoughts just about this good topic!
buy dissertation Email Homepage
14/12/2011 21:02
I know that you have done ambitious task, completing your good enough information referring to this topic. Hence, that kind of job students perform completing their dissertation writing and just economics thesis investigating.
write my paper Email Homepage
14/12/2011 20:17
Present time high school students don't compose essay paper by their own. They buy essay online and focus on their affairs.
forum profile service Email Homepage
11/12/2011 13:40
Frequently, it happens that your site is low ranked. Don't realize a good method to solve such type of problem? Do you know that forum profile service or backlinks submission services will be able assist you? Professionals know the way to fix SEO stuff!
adsffd Email Homepage
07/12/2011 08:39
their ability of keeping people wearing them Ralph Lauren Outlet warm during the winter season. Ralph Lauren Outlet Online  The UGG Ultra Short Boots originated in Australia,
mortgage loans Email Homepage
07/12/2011 02:51
Some time before, I really needed to buy a house for my organization but I did not have enough money and could not order anything. Thank God my father suggested to get the personal loans at trustworthy bank. So, I acted so and was happy with my consolidation loan.
lishaohong163 Email
28/11/2011 10:30
Our Australia UGG Boots Outlet sale now,not only womens ugg boots clearance,but also kids boots clearance,cheapest and high quality,you are welcome! UGG Boots On Sale sells all kinds of boots with no tax and free shopping worldwide! Welcome to place the order during UGG Boots For Sale period. UGG boots clearance sells the high quality products with the lower price. Welcome to our shop which ugg sale.100%genuine and good service for you.Many items, good looking.Best choice for you.
personal loans Email Homepage
31/08/2011 19:50
I received my first loan when I was 20 and this helped my family very much. Nevertheless, I need the auto loan once again.
stone crushers Homepage
31/08/2011 16:28
Yangzhong Haote Valves Co., Ltd., a high-technology manufacturer of  valves manufacturers ,stainless steel valves, PTFE butterfly valves,pneumatic butterfly valves,butterfly valves,gauge valves and more. Contact us at [email protected]
分頁: 10/14 第一頁 上頁 5 6 7 8 9 10 11 12 13 14 下頁 最後頁
發表評論
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
開啟HTML
開啟UBB
開啟表情
隱藏
記住我
暱稱   密碼   訪客無需密碼
網址   電郵   [註冊]