note 43727 added to function.chmod

From: Date: Thu, 01 Jul 2004 12:21:42 +0000
Subject: note 43727 added to function.chmod
Groups: php.notes 
Request: Send a blank email to php-notes+get-72260@lists.php.net to get a copy of this message
Well, you don't need octals. You need a value that can easily computed and remembered if printed in octal. 511 (decimal) is the same as 777 (octal). So it's the same wether you write chmod("foo",511) or chmod("foo",0777) The latter is just better readable. ---- Manual Page -- http://www.php.net/manual/en/function.chmod.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+43727 Delete -- http://master.php.net/manage/user-notes.php?action=delete+43727&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+43727&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#72260) next »