ftp_chmod

It sets permissions on a file via FTP

Example

<?php

$fName=”test”;

$ftpId = ftp_connect(‘ftp.phpcodez.com’);

$login_result = ftp_login($ftpId, ‘anonymous’, ‘user@phpcodez.com’);

ftp_chmod($ftpId, 0777,$fName or die(“Failed”);;

?>