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! Link to comment https://forums.phpfreaks.com/topic/96126-mkdir/ 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 Link to comment https://forums.phpfreaks.com/topic/96126-mkdir/#findComment-492197 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 Link to comment https://forums.phpfreaks.com/topic/96126-mkdir/#findComment-492199 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 Link to comment https://forums.phpfreaks.com/topic/96126-mkdir/#findComment-492277 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.