The ftp_chmod() function is used to set permissions on a specified remote file via FTP.
int ftp_chmod ( resource $ftp_stream , int $mode , string $filename )
Sets the permissions on the specified remote file to mode.
Parameter | Description |
---|---|
ftp_stream | The link identifier of the FTP connection |
mode | The new permissions, given as an octal value |
filename | The remote file |
Returns the new file permissions on success or FALSE on error.