file_put_contents - failed to open stream: Permission denied

前端 未结 14 1698
耶瑟儿~
耶瑟儿~ 2020-11-27 03:05

I am trying to write a query to a file for debugging. The file is in database/execute.php. The file I want to write to is database/queries.php.

14条回答
  •  伪装坚强ぢ
    2020-11-27 03:35

    There 2 way to resolve this issues
    1. use chmod 777 path-to-your-directory.
    if it does not work then
    2. simply provide the complete path of your file query.txt.

提交回复
热议问题