Page 1 of 1

MkDir and Umask problems..

Posted: Tue Jun 11, 2002 12:16 am
by Jim

Code: Select all

<?
 $oldumask = umask(0);
  mkdir("$dname", "01777"); 
  umask($oldumask);
?>

This code creates a directory, but the directory is CHMODED 361. Why? Note: 0777 doesn't work, either. It gives me 441.

Thanks!