note 99584 deleted from function.chmod by danbrown
| From: | danbrown@php.net | Date: | Wed, 25 Aug 2010 14:01:39 +0000 |
| Subject: | note 99584 deleted from function.chmod by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-172050@lists.php.net to get a copy of this message | ||
Note Submitter: reorganisation at evo-german dot com
----
@Geoff W
maybe you be right.
So you have to do the integer conversion during chmod on base of octal:
chmod("your_file", intval('0644', 8));
Does a conversion of string '0644' on octal base. So you get 420 as decimal which is 644
in octal.