GamingWarrior Posted October 20, 2007 Share Posted October 20, 2007 When i crate a folder using mkdir($foldername, 0777); it makes the folder chmod 0755 and unable to delete the folder or the contents of it, this is a huge problem. So my question is how do i make a folder chmod 0777 so that i can delete it over ftp. Quote Link to comment https://forums.phpfreaks.com/topic/74044-solved-mkdir-help/ Share on other sites More sharing options...
LemonInflux Posted October 20, 2007 Share Posted October 20, 2007 odd. 0777 always worked for me. Quote Link to comment https://forums.phpfreaks.com/topic/74044-solved-mkdir-help/#findComment-373824 Share on other sites More sharing options...
redarrow Posted October 20, 2007 Share Posted October 20, 2007 Try this please........ Is the folder 0777 know,,,,,, <?php $test="redarrow"; $x=mkdir($test); chmod($x,0777); ?> Quote Link to comment https://forums.phpfreaks.com/topic/74044-solved-mkdir-help/#findComment-373827 Share on other sites More sharing options...
JJohnsenDK Posted October 20, 2007 Share Posted October 20, 2007 i have the same problem... i tried your code redarrow... the folder is created but the permission is set to 0755... any ideas on this? i can change the permission with a ftp program... but then when i use rename it wont work... so its smells like php cant get permission to higher than 0755 on the webserver? Quote Link to comment https://forums.phpfreaks.com/topic/74044-solved-mkdir-help/#findComment-373834 Share on other sites More sharing options...
GamingWarrior Posted October 20, 2007 Author Share Posted October 20, 2007 yours gave me a folder not found error but this did the job mkdir($base_img_dir); chmod($base_img_dir,0777); didn't think of doing them separate Quote Link to comment https://forums.phpfreaks.com/topic/74044-solved-mkdir-help/#findComment-373836 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.