![]() |
|
論壇說明 |
歡迎您來到『史萊姆論壇』 ^___^ 您目前正以訪客的身份瀏覽本論壇,訪客所擁有的權限將受到限制,您可以瀏覽本論壇大部份的版區與文章,但您將無法參與任何討論或是使用私人訊息與其他會員交流。若您希望擁有完整的使用權限,請註冊成為我們的一份子,註冊的程序十分簡單、快速,而且最重要的是--註冊是完全免費的! 請點擊這裡:『註冊成為我們的一份子!』 |
|
主題工具 | 顯示模式 |
![]() |
#4 (permalink) |
長老會員
![]() |
![]() http://tw.php.net/manual/en/function.fopen.php
這是php網站的函數說明.. fopen("檔名","w") ... 使用w模式, 表示開啟檔案只用來寫入, 而且開啟時 刪除該檔案的全部內容 原文: Open for writing only; place the file pointer at the beginning of the file and truncate the file to zero length. If the file does not exist, attempt to create it. fopen("檔名","a") 使用a模式, 表示開啟檔案只用來寫入(無法讀取), 並且將指標放在文件後最後面 原文: Open for writing only; place the file pointer at the end of the file. If the file does not exist, attempt to create it. ================ 結論:把參數由 w 改成a...就可以直接把你要寫的內容加在文字檔後面了... (至於要換行...請在寫入的內容加上 "\r" 或者 "\r\n" ) |
![]() |
送花文章: 4036,
![]() |
|
|
![]() |
||||
主題 | 主題作者 | 討論區 | 回覆 | 最後發表 |
貼圖 - 真是搞不懂..就是有人喜歡把它拿來當桌面.... | 米奇 | 網路及生活有趣圖片貼圖區 | 11 | 2007-07-11 09:02 PM |
連線到localhost的PHP問題 | alrex5401 | 硬體疑難使用問題討論區 | 3 | 2005-04-25 01:41 AM |
關於ASP或PHP網頁空間~ | johnny.b | 軟體應用問題討論區 | 1 | 2003-04-23 12:32 AM |