Simple method to remotely transfer any files(mdia,zip etc) from one host to another host
<?php
define('BUFSIZ', 4095);
$url = 'http://www.xyz.me/test.zip';
$rfile = fopen($url, 'r');
$lfile = fopen(basename($url), 'w');
while(!feof($rfile))
fwrite($lfile, fread($rfile, BUFSIZ), BUFSIZ);
fclose($rfile);
fclose($lfile);
?>
Step 1: First you need to create a file by any name remote_upload.php your files to be uploaded.
Step 2: Add the above code and replace urls with your actual url to be remotely upload.
Step 3 : Now , run the file remote_upload.php and your requested files will be automatically tranfered in a fraction of second.