Page 1 of 1
create folder in 777 problem
Posted: Tue Apr 20, 2004 5:23 pm
by potato
The maps created wirh this code are sometimes 755 and sometimes 700 and so on. What am i doing wrong? why are they not 777 like i demand?
mkdir ("artists/$dirname" , 0777) or die;
Posted: Thu Apr 22, 2004 2:12 am
by Chris Corbyn
Can you CHMOD the folder?
It's possible that it's been disabled on the server.
Posted: Wed May 12, 2004 10:40 am
by dave420
Or, simply that the user the webserver is running under doesn't have permission to change the mode of the folders itself, thereby rendering your code slightly limited...
Posted: Wed May 12, 2004 5:35 pm
by pickle
Changing/setting permissions on a folder will only set the permissions for that folder, not stuff inside. To do so, you need to set the 'sticky' bit. Try using '2777' instead of '0777'.
P.S. Are you sure you want to make the directory world writable?