Easy Tutorial
❮ Func Curl_Error Func Mysqli Get Client Info ❯

PHP chmod() Function



Definition and Usage

The chmod() function changes the permissions of a specified file.

It returns TRUE on success and FALSE on failure.

Syntax

Parameter Description
file Required. Specifies the file to check.
mode Required. Specifies the new permissions. The mode parameter consists of 4 digits: The first digit is usually 0<br> The second digit specifies the owner's permissions<br> The third digit specifies the permissions of the group the owner belongs to<br> The fourth digit specifies the permissions of everyone else Possible values (to set multiple permissions, sum the following numbers): 1 = execute permission<br> 2 = write permission<br> 4 = read permission

Examples


❮ Func Curl_Error Func Mysqli Get Client Info ❯