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有點風險,最好就是先備份一下原本的文件才作改動啦。
look here Email Homepage
01/10/2012 09:33
Find out about primewritings (primewritings.com) if you desire to gain high marks for your task. For this to become true you have to gain essays online and you will get essay help or just purchase term paper from the best company. You will be guaranteed to gain perfect professional writing services. Very often there are issues with paper writing and people fail to pass their examinations. If that’s waht happaned to you, you should go to primewritings company in order to buy scientific research papers.
order essay paper Email Homepage
01/10/2012 08:45
You fail if opine that will be not hard to buy custom written term papers primewritings.com. That is not very easy to determine reliable corporations online. University students, always choose a lot of them just before they find a right one.
cheap essay writing Email Homepage
01/10/2012 08:23
Would like to utilize your time for your own activities? You would be able to do it opting for the purchase term paper service.
coursework help Email Homepage
01/10/2012 07:39
Do not order not useful things and pay your cash for custom essay qualityessay.com service, which can help you to get good results.
essay service Email Homepage
01/10/2012 07:38
There is no matter if students are experienced in college term paper "primewritings.com" and essay papers performing, they would need demonstrate their essays writing technique anyway. So to buy essay paper from the paper writing service would be the great pass way out.
buy research papers Email Homepage
01/10/2012 06:38
Visit this site if you are interested in purachasing term paper from the first-rate organisation. You can be sure that you will have good cheap custom essay writing services.
write my essay cheap Email Homepage
29/09/2012 01:09
There are men who can shift your writing pressure. Moreover, you just can place a custom essay order (supremeessays.com) and your problems will be resolved.
order essays online Email Homepage
29/09/2012 00:31
excellent  column on how to keep up  college research paper "supremeessays.com" hobby setup. I didn't know you could do this but you see something new everyday.
CELINAFitzpatrick23 Email Homepage
28/09/2012 23:45
Various people attempt to cope with their academic assignments writing being not experiences. Nevertheless, you take a risk writing academic papers yourself. Thence, why play dangerous games? Just buy <a href="http://www.supremeessays.com">customs essays</a> and feel your success!
buying term papers Email Homepage
04/09/2012 02:03
A+ can be not a dream in up to date world, because students have a possibility to buy essays to feel great.
custom essay paper online Email Homepage
04/09/2012 01:09
Usually, people need some support completing term papers. Thus I will recommend to order essay writing service, which seems to be a proper way to success.
Personal Statement Writing Email Homepage
04/09/2012 01:08
It’s a pleasant thing to order customized essay written by proficient writers. All you need to do is to press link. At this agency there is -professional research paper services.
Custom Write Email Homepage
04/09/2012 00:22
Do you experience problems with producing papers? The only way for you is to  press link (primeessays.com) if you desire to buy an essay from great paper writing firm. You will gain  nice writing services. If you have problems with essay writing surf the Primeessays company to get a term paper.
order custom writing Email Homepage
04/09/2012 00:20
Now, there are numerous academic writing companies which propose professional writing service, but I recommend you to get in touch with Essays experts company and buy essay custom assistance from the most trustful writing agency.
buy writing paper Email Homepage
31/08/2012 23:27
If You are looking for wonderfull writing help and expecting to instantly bargain custom essays, all You have to do is to simply visit this website exclusivepapers.com.
分頁: 6/14 第一頁 上頁 1 2 3 4 5 6 7 8 9 10 下頁 最後頁
發表評論
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
開啟HTML
開啟UBB
開啟表情
隱藏
記住我
暱稱   密碼   訪客無需密碼
網址   電郵   [註冊]