看板 [ PHP ]
討論串[請益] 計數器歸零?
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓16(16推 0噓 38→)留言54則,0人參與, 最新作者bibo9901 (Leo)時間16年前 (2009/05/19 11:28), 編輯資訊
0
0
0
內容預覽:
問題在這個"w". 根據php.net. Open for writing only;place the file pointer at the beginning of the file. and truncate the file to zero length.. If the file doe
(還有152個字)

推噓2(2推 0噓 4→)留言6則,0人參與, 最新作者gyd (ipod touch之路)時間16年前 (2009/05/18 19:40), 編輯資訊
0
0
0
內容預覽:
以下是計數器的程式碼. $c=file("counter.txt");. $visit=$c[0]+1;. echo "$visit";. $fp=fopen("counter.txt", "w");. fputs($fp,$c[0]+1);. fclose($fp);. -------------
(還有54個字)
首頁
上一頁
1
下一頁
尾頁