I'm trying to unlink (delete) a bunch of files but first I need permission to do so. When I manually set the permissions it works. However, when I try doing it in my php file I get the following error:
Warning: chmod failed: Operation not permitted in /home/virtual/site38/fst/var/www/html/backoffice/admin.php on line 18
That line of code is simply:
chmod("/home/virtual/site38/fst/var/www/html/backoffice", 777);
Any ideas?