I'd uploaded some files via ftp and then I chmod them 777.
Then I created a php script to manage these files, when I tried to delete a selected file I got this error:
Unlink failed (Permission denied) in /home/sitefolder/public_html/admin/confirm_delete.php on line 93
I have this in the line #93:
92:$file="/home/sitefolder/public_html/files/file.pdf";
93:if (unlink($file)){
94:echo"file deleted";
95:}else{
96:echo"ERROR!";
97:}
I don't know what's the problem, I had changed the permissions to 777 but the problem persists... 🙁
I need your help!!
Thanx