Many other times we will not be used for PHP ftp function file Upload Oh, but there are in the use of more advanced Web applications will be used in the FTP function, such as I now upload the image of the B server, data saved to a server, ordinary PHP file upload instance can not, But with the FTP function can be a convenient example.
Many other times we will not be used for PHP tutorial ftp function File Upload Oh, but there are in the use of more advanced Web applications will be used in the FTP function, such as I now upload the image of the B server, data saved to a server, ordinary PHP file upload instance can not, But with the FTP function can be a convenient example.
Defining variables
$local _file = ' local.zip ';
$server _file = ' server.zip ';
Connecting to an FTP server
$conn _id = ftp_connect ($ftp _server);
Verifying the logon server
$login _result = Ftp_login ($conn _id, $ftp _user_name, $ftp _user_pass);
Download file
if (Ftp_get ($conn _id, $local _file, $server _file, ftp_binary)) {
echo "Download $local _file file Success n";
} else {
echo "Download failed n";
}
Close FTP connection
Ftp_close ($conn _id);
?>
http://www.bkjia.com/PHPjc/445457.html www.bkjia.com true http://www.bkjia.com/PHPjc/445457.html techarticle Many other times we will not be used for PHP ftp function file Upload Oh, but there are in the use of more advanced Web applications will be used for the FTP function, such as I will now upload the image of the B server ...