I have a classifieds website, and when users post a new classified, they may chose to upload images.
My php code takes the chosen image, uploads it to a image folder, and names it accordingly.
The problem here is, I have to set the images folder to 777 in order for this to work.
My question is, what should the permissions be set to? And any ideas why it is not working if not 777?
If you need more input just let me know...
Thanks
UPDATE
I have a user (danny) which has root access... The folder where images are uploaded to, as well as the "image_upload.php" file which does the magic, are owned by user "danny". Then I just tried setting them to chmod 764, but when I do that I get a problem.
See, it seems that I HAVE to set r+w+e permissions for the "public" for everything to work.
Can't figure out why...
Thanks again