推 ottokang:伺服器的檔案權限設定有問題 11/29 00:08
※ 編輯: lysosome 來自: 134.208.34.12 (11/29 15:16)
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 134.208.34.12
這是一個"消息公告"的小程式
每次要發布消息的時候都會出現下面的失敗通知 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
--