Page 1 of 1

permissions

Posted: Wed Jun 14, 2006 9:42 pm
by spartan7
Hi

I've built a CMS ... I need to be able to upload images, however for that to happen, I need to cmod the images directory 777 no? What type of danger am I opening myself to if I keep the directory open with those sort of permissions?

If I FTP I can set the folder permissions, from php the cmod function does nothing. Any suggestions for how I can allow uploading without keeping a folder open with 777 permissions?

Posted: Wed Jun 14, 2006 10:17 pm
by feyd
have PHP FTP the file to itself.