PHP ftp_close May 14, 2012 Pramod T P It closes an FTP connection 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”); ftp_close($ftpId); ?>