note 90026 added to function.fileperms

From: Date: Thu, 02 Apr 2009 10:11:17 +0000
Subject: note 90026 added to function.fileperms
Groups: php.notes 
Request: Send a blank email to php-notes+get-152742@lists.php.net to get a copy of this message
Since the output of decoct( fileperms('.') ) is of the form: 40644 It seems the previous example is wrong, instead you should understand: To get permissions formatted as "644": <?php echo substr(decoct( fileperms('.') ), 2); ?> To get permissions formatted as "0644": <?php echo substr(decoct( fileperms('.') ), 1); ?> ---- Server IP: 64.71.164.2 Probable Submitter: 66.194.253.20 ---- Manual Page -- http://www.php.net/manual/en/function.fileperms.php Edit -- https://master.php.net/note/edit/90026 Del: integrated -- https://master.php.net/note/delete/90026/integrated Del: useless -- https://master.php.net/note/delete/90026/useless Del: bad code -- https://master.php.net/note/delete/90026/bad+code Del: spam -- https://master.php.net/note/delete/90026/spam Del: non-english -- https://master.php.net/note/delete/90026/non-english Del: in docs -- https://master.php.net/note/delete/90026/in+docs Del: other reasons-- https://master.php.net/note/delete/90026 Reject -- https://master.php.net/note/reject/90026 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#152742) next »