I'm attempting to you mkdir to create a directory with full write permissions for users to upload (iamges) to.
Well I can create the directory fine
mkdir ("/usr/www..../public_html/sections",0777);
but I can't get the write permissions set.
If I try 0777 as above the directory gets CHMODed to 400, 777 sets it so 744, 0775 sets it to 744 again, and 0700 (PHP manual example) sets it to 700.
Also, after creating it, I found I am unable to change the permissions via FTP, it just says Operation not permitted. I can delete it fine though...
Has anyone got any ideas?
Thanks