PHP: ftp_chmod() function
Description
The ftp_chmod() function is used to set permissions on a specified remote file via FTP.
Version:
(PHP 5 )
Syntax:
ftp_chmod(ftp_connection, imode, filename)
Parameters:
Name | Description | Required / Optional |
Type |
---|---|---|---|
ftp_connection | The link identifier of the FTP connection. | Required | Resource |
imode | The new permissions, specified as an octal value. | Required | Integer |
filename | The remote file name. | Required | String |
Return value:
New file permissions on success or FALSE on error.
Value Type: Integer.
Example:
See also
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics