chmod
chmod
(PHP 4, PHP 5, PHP 7)
chmod — Changes file mode
Description
bool chmod ( string $filename , int $mode )
Attempts to change the mode of the specified file to that given in mode
.
Parameters
-
filename
-
Path to the file.
-
mode
-
Note that
mode
is not automatically assumed to be an octal value, so to ensure the expected ope