PHP - rmdir (permission denied)

后端 未结 4 1545
挽巷
挽巷 2021-01-13 20:48

I have an easy script to create and delete a folder, but when I try to delete a folder, it brings up and error.

The code:



        
4条回答
  •  北海茫月
    2021-01-13 21:26

    It looks like you need access rights on the folder you're trying to edit.

    To change this:

    chmod ug+rw /home/free/howto.cz/m/mousemys/root/www/g_test/
    

    or maybe you'll need to do

    sudo chmod ug+rw /home/free/howto.cz/m/mousemys/root/www/g_test/
    

    Make sure that this is what you want to do and that your application is secure. Don't give write rights to any application since it could lead to security issues.

提交回复
热议问题