I’m trying to chmod a file to 777 permissions and then delete it using unlink in PHP. However, I’m getting permissions denied error. I’m able to change the permissions when logged in via FTP in filezilla though.
How do I fix this ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I would suggest you to try following.
If it does not work then try this
If none of these work, then I would think of using more complicated FTP functions.