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有點風險,最好就是先備份一下原本的文件才作改動啦。
site Email Homepage
31/01/2013 02:51
Are not able to generate prime curriculum vitae on your own? Online writing bureaus will assist you with good grace when you want to buy resumes "perfect-resume.com".
Web site Email Homepage
31/01/2013 02:49
If you don’t have the slightest idea what site to see essay service reviews on, contact Best-Essay-Sites firm and you will never feel sorry.
online plagiarism Email Homepage
27/01/2013 18:38
Whether we approve it or not, quondam in our lives, we would need to carry out term papers and other written activity. It is categorically not cinch but very compelling to make a analyze about this good topic. 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 plagiarism checking performed by http://www.plagiarismsearch.com and save your time like some quick help with the American Dream.
get inbound links Email Homepage
27/01/2013 10:48
When you want doubled traffic, you cannot utilize automatic methods of articles submission. Professional forum posting service should offer manual SEO stuff.
SLOANMiranda Email Homepage
27/01/2013 09:26
Simply work with professionals of search engine optimization will bring the best outcomes. So, why not use the <a href="http://4submission.com">rss feeds submission</a> company?
Signs and Signage Email Homepage
14/01/2013 09:52
I really appreciate this post. I’ve been looking all over for this! Thank goodness I found it on Bing. You’ve made my day! Thanks again! “One never goes so far as when one doesn’t know where one is going.

Signs and Signage
college term papers for sale Email Homepage
14/01/2013 07:28
That's well known that academic grades suppose to be very complicated to reach. When you order custom essay composed by experts, you should definitely reach the top.
buy an essays online Email Homepage
14/01/2013 05:13
Did you know anything just about papers writing corporations? Did you know such professionals could create custom papers of very high quality. Thus, you could buy custom papers (topwritingservice.com) to become successful.
paper writing Email Homepage
02/12/2012 00:20
Have lots of things to perform but are pressured for time? Then, you should better to buy an essay (goldessays.com).
research papers online Email Homepage
01/12/2012 23:08
Do you know who is good in essays papers creating. If you do not get, then I should tell you that custom writing service is good enough to provide you with the best papers.
writers job Email Homepage
01/12/2012 19:33
Good evening to each one! Want to  tell you that  amazing staff of this jobs writing online service have provided assistance to me over and over with the submission of my school assignments and had done this job more than efficientlyexcellently.
website submission Email Homepage
01/12/2012 16:29
Generally google directory submission service can have got a data base of different directories. Furthermore, specialists will do your google directory submission job!
social bookmarking service Email Homepage
01/12/2012 15:01
I do not like to turn to different services to solve my issues. However, I am not a specialist in seo therefore I need to ask forum posting services "marketingslinks.com" to aid me.
religion essays Email Homepage
25/11/2012 14:37
Good students are able to write the essays of really good quality. However, from time to time they are busy for that things. Then they have to buy wars essay, which supposes to be really comfortable solution for occupied guys.
literature essay Email Homepage
25/11/2012 13:25
Want to find free literature essays? It's not a problem, simply check services, which propose the homework help.
分頁: 3/14 第一頁 上頁 1 2 3 4 5 6 7 8 9 10 下頁 最後頁
發表評論
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
開啟HTML
開啟UBB
開啟表情
隱藏
記住我
暱稱   密碼   訪客無需密碼
網址   電郵   [註冊]