YouTip LogoYouTip

Func Filesystem Chmod

# PHP chmod() Function * * Complete PHP Filesystem Reference](#) * * * ## Definition and Usage The chmod() function changes the permissions of a specified file. Returns TRUE on success, FALSE on failure. ## Syntax chmod(file,mode) | Parameter | Description | | :--- | :--- | | file | Required. Specifies the file to check. | | mode | Required. Specifies the new permissions. The mode parameter consists of four digits: * The first digit is usually 0 * The second digit specifies permissions for the owner * The third digit specifies permissions for the owner's group * The fourth digit specifies permissions for everyone else Possible values (add the numbers below to set multiple permissions): * 1 = execute permission * 2 = write permission * 4 = read permission | * * * ## Example * * Complete PHP Filesystem Reference](#)
← Func Filesystem ChownFunc Filesystem Chgrp β†’