元問答欄目視頻美女
  1. 編程問答
  2. 答案列表

Fwrite: :supplied resource is not a valid stream resource

回答列表
其實這個問題很簡單,就是fopen的線程,可能已經被fclose關閉了,或者fopen打開線程失敗,這可能是文件操作權限不夠。
php請放棄fopen,用file_put_contents
if(!is_file(tmp_path.'jusitemap.xml'))。
file_put_contents(tmp_path.'jusitemap.xml',$str)。
else
file_put_contents(tmp_path.'jusitemap.xml',$str,file_append)。
猜你喜歡
相關推薦