Open GoogleCodeExporter opened 8 years ago
The default mask may prevent mkdir() from setting the desired permissions. (see
PHP: umask)
My solution was to replace the line:
if(mkdir($userdir.$d.$nfname, $default_perm)) $ok = "Your directory, '".$dis.$d.$ndir.$nfname."', was succesfully created.\n";
with:
if(mkdir($userdir.$d.$nfname, $default_perm)) {
$ok = "Your directory, '".$dis.$d.$ndir.$nfname."', was succesfully created.\n";
@chmod($userdir.$d.$nfname, intval($default_perm,8));
}
Original comment by TStephen...@gmail.com
on 13 Aug 2011 at 5:22
Original issue reported on code.google.com by
pelli...@googlemail.com
on 28 Jul 2010 at 9:14