note 24431 added to function.fileperms
| From: | uo at chello dot at | Date: | Thu, 15 Aug 2002 21:13:14 +0000 |
| Subject: | note 24431 added to function.fileperms | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-35091@lists.php.net to get a copy of this message | ||
In response to the above post by php@rij73.com.
To get this to work and really have 3 digits displayed i had to change this line
$perms=(substr($octalperms,3));
into this
$perms=(substr($octalperms,2));
if i wanted to check fileperms. on directorys. If used on dir it displays only 2 digits using the
above example. No idea why. On files however the above example is correct.
--
http://www.php.net/manual/en/function.fileperms.php
http://master.php.net/manage/user-notes.php?action=edit+24431
http://master.php.net/manage/user-notes.php?action=delete+24431
http://master.php.net/manage/user-notes.php?action=reject+24431