note 58393 deleted from function.mkdir by crell

From: Date: Wed, 29 Jun 2022 19:20:06 +0000
Subject: note 58393 deleted from function.mkdir by crell
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-218725@lists.php.net to get a copy of this message
Note Submitter: Kevin Cook ---- I could not get the sticky bit set properly using the octal mode: 2775 (rwxrwsr-x) $foo='my_directory'; $old_umask = umask(0); mkdir($foo,2775); umask($old_umask); using the above lines renders a directory with permissions: d-wx-wSrwt 2 www www 4096 Nov 2 11:43 my_directory Not exactly what I was looking for. This gets closer to the mark: $foo='my_directory'; $old_umask = umask(0); mkdir($foo,0777); // the default chmod umask($old_umask); drwxrwsrwx 2 www www 4096 Nov 2 11:46 my_directory

« previous php.notes (#218725) next »