Here is a simple remote upload script that helps you to download unlimited sized files to your server from other servers,without the difficulty of downloading and uploading again and again.It wont work on all servers like rapidshare and megaupload ,but the key idea is,your server system wont hang due to its simplicity.
Rapidleech script also transfers files from Rapidshare, Megaupload, Depositfiles.com, Easy-share.com, etc, via your fast servers connection speed and dumps the file on your server.But,From my experience,this may make server stuck, if you transfer huge size files.
Here is the code
<?php
define('BUFSIZ', 4095);
$url = 'http://www.techtipsmaster.com/alexa-top-ranks.csv.zip';
$rfile = fopen($url, 'r');
$lfile = fopen(basename($url), 'w');
while(!feof($rfile))
fwrite($lfile, fread($rfile, BUFSIZ), BUFSIZ);
fclose($rfile);
fclose($lfile);
?>
USAGE
1.Change the $url value with the url of the file which you want to download..
2.Just put this script in the folder where you want to download the file to.
3.Change the permissions of t he folder to writable.
4.Now just access the script url via your web browser and wait for the page to load completely.Once fully loaded,the remote file should be on your server.
Recent Comment