How do I configure PHP to have permission to create directories and make files?

前端 未结 3 344
你的背包
你的背包 2021-01-14 21:10

I have a PHP script that receives uploads and it works fine in mamp, creating directories and receiving files as necessary, but when I move it to the server it errors out sa

3条回答
  •  执念已碎
    2021-01-14 21:51

    chown or chmod 777 the directories where the script wants to write (create) the files and NOT the script itself.

提交回复
热议问题