PHP ftp_chmod() Function

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.

Example -

ParameterDescription
ftp_streamThe link identifier of the FTP connection
modeThe new permissions, given as an octal value
filenameThe remote file

Returns the new file permissions on success or FALSE on error.