看板
[ PHP ]
討論串[請益] 計數器該如何隔夜歸零呢?
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
參考一下這樣的寫法:. <?php. $counter = @file_get_contents("counter.txt");. list($count,$date) = explode(",",$counter);. $count ++;. if($date != date("Ymd")){.
(還有8個字)
內容預覽:
最近寫了個計數器. 似乎work起來都ok. 但我希望他能隔夜歸零. 懇談大大們指點一下該如何做呢?. 謝謝!!. <?php. if (file_exists('count_day.txt')). {. $fil = fopen('count_day.txt', r);. $dat = fread
(還有254個字)
首頁
上一頁
1
下一頁
尾頁