[請益]fopen

看板PHP作者 (遇到善心人士^^)時間19年前 (2005/11/28 23:50), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串1/2 (看更多)
這是一個"消息公告"的小程式 每次要發布消息的時候都會出現下面的失敗通知 Orz Warning: fopen(data.dat) [function.fopen]: failed to open stream: Permission denied in/home/STUDENT/public_html/test/result.php on line 50 Warning: fwrite(): supplied argument is not a valid stream resource in /home/STUDENT/public_html/test/result.php on line 51 Warning: fclose(): supplied argument is not a valid stream resource in /home/STUDENT/public_html/test/result.php on line 52 == 以下是result.php 的第50~52行 $f=fopen("data.dat","a+"); fwrite($f,$main); fclose($f); 可以教教我該怎麼修改嗎 因為看不懂,怎麼看都好像對又不對的樣子= =b -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 134.208.34.12

11/29 00:08, , 1F
伺服器的檔案權限設定有問題
11/29 00:08, 1F
※ 編輯: lysosome 來自: 134.208.34.12 (11/29 15:16)
文章代碼(AID): #13YoTRLV (PHP)
討論串 (同標題文章)
以下文章回應了本文
完整討論串 (本文為第 1 之 2 篇):
1
1
19年前, 11/28
文章代碼(AID): #13YoTRLV (PHP)