bryanptcs Posted December 18, 2006 Share Posted December 18, 2006 I have the following line mkdir ($dir, 0777); which should make a directory based on $dir and then give that directory all permissions...this is not happening....it is giving the following permissions (sorry for the way I am writing it, but I am not that savy with permissions) drwxr-xr-x....is the line of code not correct or is it something someplace else....THanks. Link to comment https://forums.phpfreaks.com/topic/31129-solved-mkdir-permissions/ Share on other sites More sharing options...
simcoweb Posted December 18, 2006 Share Posted December 18, 2006 Your host most likely doesn't support your ability to make directories and set permissions. I ran into this before myself. Link to comment https://forums.phpfreaks.com/topic/31129-solved-mkdir-permissions/#findComment-143738 Share on other sites More sharing options...
The Little Guy Posted December 18, 2006 Share Posted December 18, 2006 you could try it in two steps:1. make the directory2. change the chmod http://us3.php.net/manual/en/function.chmod.phpIf this doesn't work, you probably don't have permissions. Link to comment https://forums.phpfreaks.com/topic/31129-solved-mkdir-permissions/#findComment-143813 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.