note 114631 added to function.fileperms
| From: | Dominic | Date: | Fri, 14 Mar 2014 08:24:03 +0000 |
| Subject: | note 114631 added to function.fileperms | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-198889@lists.php.net to get a copy of this message | ||
A small function for the last 3 digits (777/755 ect.)
<?php
function getFilePermission($file) {
$length = strlen(decoct(fileperms($file)))-3;
return substr(decoct(fileperms($file)),$length);
}
?>
----
Server IP: 87.106.1.137
Probable Submitter: 62.132.210.235
----
Manual Page -- http://php.net/manual/en/function.fileperms.php
Edit -- https://master.php.net/note/edit/114631
Del: integrated -- https://master.php.net/note/delete/114631/integrated
Del: useless -- https://master.php.net/note/delete/114631/useless
Del: bad code -- https://master.php.net/note/delete/114631/bad+code
Del: spam -- https://master.php.net/note/delete/114631/spam
Del: non-english -- https://master.php.net/note/delete/114631/non-english
Del: in docs -- https://master.php.net/note/delete/114631/in+docs
Del: other reasons-- https://master.php.net/note/delete/114631
Reject -- https://master.php.net/note/reject/114631
Search -- https://master.php.net/manage/user-notes.php