Basically,
my problem is that I use copy() to download images on a script.
However, on a server, the images directory and parent directory of the images must be made 777 for images to be able to be downloaded into the directory.
However, if I leave it as 777, everyone can go in there and download all the images.
Is there anyway to chmod the directories to 777 when the script runs and chmod them back to 773 when the script ends?
Also, anyone has another suggestion for this image download?