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 https://forums.phpfreaks.com/topic/96144-need-help-with-creating-directorys/ Share on other sites More sharing options...
Alexhoward Posted March 14, 2008 Share Posted March 14, 2008 have you looked at this? http://uk.php.net/mkdir Quote Link to comment https://forums.phpfreaks.com/topic/96144-need-help-with-creating-directorys/#findComment-492153 Share on other sites More sharing options...
brad12345 Posted March 14, 2008 Author Share Posted March 14, 2008 my problem isnt making the new folder its just it doesnt seem to be changing the CHMOD permissions? Quote Link to comment https://forums.phpfreaks.com/topic/96144-need-help-with-creating-directorys/#findComment-492157 Share on other sites More sharing options...
samshel Posted March 14, 2008 Share Posted March 14, 2008 Hi, It should work.Try not specifying a mode. By default it should be 777. May be it works SamShel Quote Link to comment https://forums.phpfreaks.com/topic/96144-need-help-with-creating-directorys/#findComment-492158 Share on other sites More sharing options...
Alexhoward Posted March 14, 2008 Share Posted March 14, 2008 think it needs the leading zero try removing the true, and using single quotes i'm just guessing!! Quote Link to comment https://forums.phpfreaks.com/topic/96144-need-help-with-creating-directorys/#findComment-492162 Share on other sites More sharing options...
brad12345 Posted March 14, 2008 Author Share Posted March 14, 2008 hey yup got it to work, it was the true statement thanks alot guys! Quote Link to comment https://forums.phpfreaks.com/topic/96144-need-help-with-creating-directorys/#findComment-492189 Share on other sites More sharing options...
Alexhoward Posted March 14, 2008 Share Posted March 14, 2008 Cool! mark this as SOLVED good luck with the rest of your site Quote Link to comment https://forums.phpfreaks.com/topic/96144-need-help-with-creating-directorys/#findComment-492200 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.