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);
?>
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);
?>