note 43964 added to function.fileperms
| From: | kevin at tra dot as | Date: | Sat, 10 Jul 2004 07:31:22 +0000 |
| Subject: | note 43964 added to function.fileperms | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-72978@lists.php.net to get a copy of this message | ||
If you're just wanting to get the full perms of a file/folder in octal format, the following
nicely summarizes a few of the other notes below:
<?php echo substr( sprintf( "%o", fileperms( "/tmp" ) ), -4 ); ?>
Under (most) Linux systems, this will produce a result of: 1777
----
Manual Page -- http://www.php.net/manual/en/function.fileperms.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+43964
Delete -- http://master.php.net/manage/user-notes.php?action=delete+43964&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+43964&report=yes
Search -- http://master.php.net/manage/user-notes.php