元问答栏目视频美女
  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)。
猜你喜欢
相关推荐