note 20163 added to function.fileperms
| From: | php at rij73 dot com | Date: | Mon, 25 Mar 2002 07:04:54 +0000 |
| Subject: | note 20163 added to function.fileperms | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-28163@lists.php.net to get a copy of this message | ||
To return the regular 3-digit permissions, this was the only thing I could get to work.
//return permissions in the normal format
$decperms = fileperms($file);
$octalperms = sprintf("%o",$decperms);
$perms=(substr($octalperms,3));
--
http://www.php.net/manual/en/function.fileperms.php
http://master.php.net/manage/user-notes.php?action=edit+20163
http://master.php.net/manage/user-notes.php?action=delete+20163
http://master.php.net/manage/user-notes.php?action=reject+20163