note 43964 deleted from function.fileperms by aidan
| From: | aidan@php.net | Date: | Wed, 14 Jul 2004 09:36:32 +0000 |
| Subject: | note 43964 deleted from function.fileperms by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-73206@lists.php.net to get a copy of this message | ||
Note Submitter: kevin@tra.as
----
If you're just wanting to get the full perms of a file/folder in octal format, use:
<?php
echo substr(sprintf("%o", fileperms( "/tmp" )), -4);
?>
Under (most) Linux systems, this will produce a result of: 1777