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. Quote Link to comment 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. Quote Link to comment 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. 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.