The chmod() function changes permissions of the specified file.
Returns TRUE on success and FALSE on failure.
bool chmod ( string $filename , int $mode )
Attempts to change the mode of the specified file to that given in mode.
Parameter | Description |
---|---|
file | Required. Specifies the file to check |
mode | Required. Specifies the new permissions. |
file | The mode parameter consists of four numbers: |
Possible values (to set multiple permissions, add up the following numbers): | |