brad12345 Posted March 14, 2008 Share Posted March 14, 2008 this is the code im using $folder = $_POST["folder"]; mkdir("image_files/$folder", 0777, true); How come when i go to the ftp to see the file it has permissions 411 ??? the image_files folder has permissions set to 777 and the php script is inside the same directory as image_files any help would be great thanks! Quote Link to comment Share on other sites More sharing options...
johnska7 Posted March 14, 2008 Share Posted March 14, 2008 I don't know why it's doing that, but you could always run a chmod command after creating the folder to change the permissions Quote Link to comment Share on other sites More sharing options...
craygo Posted March 14, 2008 Share Posted March 14, 2008 The problem, I think, is the account the the web server uses, which is usually not a root or admin account, does not have rights to set chmod. I imagine it is a linux server, so you can try johnska7's suggestion to do it manually after the directory is made and see what happens. Ray Quote Link to comment Share on other sites More sharing options...
accident Posted March 14, 2008 Share Posted March 14, 2008 Ive always had this problem and had to do a chmod 0777 it afterwards Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.