PHP ftp_chmod May 14, 2012 Pramod T P 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”);; ?>