MkDir and Umask problems..

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Jim
Forum Contributor
Posts: 238
Joined: Fri Apr 19, 2002 5:26 am
Location: Near Austin, Texas

MkDir and Umask problems..

Post 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!
Post Reply