mkdir ("artists/$dirname" , 0777) or die;
create folder in 777 problem
Moderator: General Moderators
- potato
- Forum Contributor
- Posts: 192
- Joined: Tue Mar 16, 2004 8:30 am
- Location: my lovely trailer, next to the big tree
create folder in 777 problem
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;
mkdir ("artists/$dirname" , 0777) or die;
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
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?
P.S. Are you sure you want to make the directory world writable?
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.