It uploads a file to the FTP server
Example
<?php
$ftpId = ftp_connect(‘ftp.phpcodez.com’);
$login = ftp_login($ftpId, ‘anonymous’, ‘user@phpcodez.com’);
ftp_put($ftpId, $rFile, $lFile, FTP_ASCII) or die(“Failed”);
ftp_close($ftpId);
?>
It uploads a file to the FTP server
Example
<?php
$ftpId = ftp_connect(‘ftp.phpcodez.com’);
$login = ftp_login($ftpId, ‘anonymous’, ‘user@phpcodez.com’);
ftp_put($ftpId, $rFile, $lFile, FTP_ASCII) or die(“Failed”);
ftp_close($ftpId);
?>