Forum Moderators: coopster

Message Too Old, No Replies

Copying files to a public directory

         

rizoto

12:21 pm on Apr 17, 2008 (gmt 0)

10+ Year Member



Hello,

I'm writing a control panel for my website in which I can approve images that were uploaded to the website. I want to move/copy approved images to a public folder so that everybody can see the images.
The problem is that I'm not sure if I can set the public directory's permissions to 777 or not. Is it safe or someone can damage that folder in any way? Is there another option to copy/move the files without setting permissions to 777?

Thank you

milocold

3:09 pm on Apr 17, 2008 (gmt 0)

10+ Year Member



I'm not sure if another method exists, I'd sure like to find out though! =)

Perhaps you can run chmod using 777 prior to the copy/move, then run it again after to secure it.

M. Cold