I want to transfer files from a webserver to another approx 1GB, I have access to both server ftp and ftps.
How can I do it with fast way.. I don't want to download files to my computer and then upload to new server.
Thanks
I want to transfer files from a webserver to another approx 1GB, I have access to both server ftp and ftps.
How can I do it with fast way.. I don't want to download files to my computer and then upload to new server.
Thanks
use the php ftp functions. Set ini_set('max_execution_time', 0);
and ignore_user_abort(1)
then
$File = "PathToFile";
$Ftp = ftp_connect("IP of the othe server that will receive the file");
ftp_login($Ftp,"ftpuser","ftppassword");
ftp_pasv($Ftp,true); // Join pasv which is always better
ftp_put($Ftp,"Path in the remote server",$File,FTP_BINARY);
ftp_close($Ftp);
Always use FTP_BINARY when sending binary files
and of course fire the php script, via web browser or cron
Edit: Forgot ftp_login()