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有點風險,最好就是先備份一下原本的文件才作改動啦。
loans Email Homepage
19/07/2013 06:59
I had a dream to start my own company, but I didn't earn enough amount of money to do it. Thank goodness my close colleague said to take the personal loans. Thence I received the collateral loan and realized my dream.
loan Email Homepage
19/07/2013 05:16
That's perfect that we can get the loans moreover, it opens completely new chances.
Nichole26Stuart Email Homepage
18/07/2013 20:48
Get good discounts purchasing professionally written customized papers at the <a href="http://www.supremeessays.com">writing essays</a> company. Strive to get more advantages purchasing term papers in internet!
buying college essays Email Homepage
18/07/2013 19:59
Maybe this is excellent, but I found a more suitable method.  Simply  buy Response essay supremeessays.com at online writing service. I was unexpectably pleased with the outcome, I have not been graded on this yet yet i have the much confidence that I will get a acceptable grade
buy essay paper Email Homepage
18/07/2013 18:13
Nothing can stop you on the way to academic progress when you buy written essays online. Therefore, don't waste your valuable time and do your movement to success.
fghfgh
06/04/2013 19:14
I think it is really a fantastic scientific breakthrough - I mean the activation of the ensime telomerase. It well maybe the most significant feat ever achieved by medical science. The only hitch is, that TA-65 is well above the financial means of most elderly people of the world, being 4000 bucks for 6 months. An other product is also in the market - <a href="http://www.astraglaxo.com/en/index.php]cycloastragenol 98%[/url], with a much more acceptable price range. I am looking forward very much for human data, about its implementation.
Narrative Essay Email Homepage
23/03/2013 02:08
Seeking for superb service? This respectable agency has been in the writing industry for quite a long time, so it will provide you with superior quality Ethics Essay.
Management Essay Email Homepage
22/03/2013 23:57
Get Management Essay written from scratch by well-qualified writers and derive pleasure from writing process.
Comparison Essay Email Homepage
22/03/2013 22:41
Have been given a task to produce Analysis Essay perfectwritings.com but you don’t know how to perform this? Get in touch with the most outstanding writing centre on the Web.
Book Review Essay Email Homepage
22/03/2013 20:37
You have a task to compose Business Essay but you have no idea how to conduct this? Get in touch with the most trustworthy writing centre on the Web.
this site Email Homepage
18/03/2013 09:41
Consider this site "essaysservice.com" in order to get  an excellent look-in to purchase excellent college research paper and make a change in your student’s life owing to our excellent assignment writing services.
site Email Homepage
17/03/2013 16:00
Are you super bored with your paper writing tasks? If so, visit this website and acquire essays uk in no time!
term paper help uk Email Homepage
17/03/2013 14:06
You should decide on this writing business when you hanker to get custom writing uk. Log ontoWeb site (supremeessays.co.uk) and take a rest from the hard work.
buy essays now Email Homepage
17/03/2013 13:34
Greetings, I should add some ideas. I have only used one site ever to write a paper for me, that was www.supreme-essay.com, they are the miracle workers. They sent the most professional essay I have ever seen IN A MERE 8 HOURS! granted the custom paper cost me $300, but an essay that was proofread without any mistakes, plus a bibliography when was about to be screwed was well worth it. I'd suggest in this case the most impeccable custom writing service to buy Descriptive essays "supreme-essay.com" from.
look here Email Homepage
25/02/2013 11:03
Visit this website "essaysempire.com" in order to order best papers to buy and improve your academic life by coming for assistance to our best firm to receive excellent custom writing.
分頁: 1/14 第一頁 1 2 3 4 5 6 7 8 9 10 下頁 最後頁
發表評論
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
開啟HTML
開啟UBB
開啟表情
隱藏
記住我
暱稱   密碼   訪客無需密碼
網址   電郵   [註冊]