Easy Tutorial
❮ Php Imageaffine Func Math Fmod ❯

PHP ftp_chmod() Function



Definition and Usage

The ftp_chmod() function sets the permissions of a specified file on an FTP server.

If successful, the function returns the new permissions. If it fails, it returns FALSE and a warning.

Syntax

Parameter Description
ftp_connection Required. Specifies the FTP connection to use.
mode Required. Specifies the new permissions. The mode parameter consists of four digits: The first digit is usually 0. The second digit specifies the owner's permissions. The third digit specifies the permissions of the group the owner belongs to. The fourth digit specifies the permissions of everyone else. Possible values (to set multiple permissions, sum the following numbers): 1 = execute permission. 2 = write permission. 4 = read permission.
file Required. Specifies the name of the file whose permissions are to be changed.

Example


❮ Php Imageaffine Func Math Fmod ❯