mkdir("../client/images/".$imgdir."/", 0755); mkdir("../client/images/thumbnails/".$imgdir."/", 0755);All this works prefectly fine. The problem comes when the user then tries to log in via ftp and upload files into this directory to which permission denied errors are returned. Its possible for the user to delete the directory fine but they are not allowed to upload files into it. Is there anyway arround this?
Im guessing its a problem todo with users where 'apache' owns the directory. but surely the permission 755 allows any user to read/write ?