I've got a picture gallery app which has image processing automation. I upload all the new images to a directory via FTP and then run the processing script. Everything works find except I cannot unlink() the original files because I don't have permission (or PHP doesn't have permission). I get the same error when I try to chmod() them. If I copy() the files I can chmod() the copies, but not the originals. Here's the exact error:
Warning: chmod failed: Operation not permitted in /usr/home/www/botono9/aaron-murray.net/docs/Admin/processImages.php on line 70
Here's the code at line 70:
chmod($file, 0777);
I've also tried chmod($file, 0775); but to no avail. Any help would be greatly appreciated. Thanks.