note 86688 added to function.fileperms
| From: | MartinAngermeier at gmx dot net | Date: | Wed, 29 Oct 2008 20:37:25 +0000 |
| Subject: | note 86688 added to function.fileperms | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-145950@lists.php.net to get a copy of this message | ||
An easy way to calculate fileperms to chmod is this:
substr(decoct(fileperms("test.html")),3);
Displays 666 or 777 (depends on chmod set).
substr(decoct(fileperms("test.html")),2);
Displays 0666 or 0777 and refers immediately to the number set with chmod();
----
Server IP: 69.147.83.197
Probable Submitter: 79.207.135.250
----
Manual Page -- http://www.php.net/manual/en/function.fileperms.php
Edit -- https://master.php.net/note/edit/86688
Del: integrated -- https://master.php.net/note/delete/86688/integrated
Del: useless -- https://master.php.net/note/delete/86688/useless
Del: bad code -- https://master.php.net/note/delete/86688/bad+code
Del: spam -- https://master.php.net/note/delete/86688/spam
Del: non-english -- https://master.php.net/note/delete/86688/non-english
Del: in docs -- https://master.php.net/note/delete/86688/in+docs
Del: other reasons-- https://master.php.net/note/delete/86688
Reject -- https://master.php.net/note/reject/86688
Search -- https://master.php.net/manage/user-notes.php