file_put_contents - failed to open stream: Permission denied

前端 未结 14 1666
耶瑟儿~
耶瑟儿~ 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:44

    For anyone using Ubuntu and receiving this error when loading the page locally, but not on a web hosting service,

    I just fixed this by opening up nautilus (sudo nautilus) and right click on the file you're trying to open, click properties > Settings > and give read write to 'everyone else'

提交回复
热议问题