Simple Server Remote Upload Script

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.

15 Responses to “Simple Server Remote Upload Script”

  1. [...] When I had the problem with the plugin installation, i searched hard for a remote upload script where I can directly upload a file in between servers rather than downloading and uploading back to my server. So I found this script from Techtipmaster. [...]

  2. What if the file need username and password to download. Is it possible to add that option? Will be very helpful…

    Thanks

  3. @nshop1

    to upload a file who a password protected use the string

    http://username:password@domain.tld

    ex. from hotfile to your server

    http://username:password@hotfile.com

    (http://username:password@hotfile.com/dl/9288706/1074b48/Alien.Trespass.LIMITED.DVDRip.XviD-NeDiVx.part1.rar.html)

    hope that helps

  4. hi,thanks for this script,i didn’t try it ,

    but how can i add multiple links at once ?

    i hope you have a tip for it

    just sue the “for” statement ,,,,,i guess -_-’

  5. Thanx a loooooooooooooooot!!! U have saved my precious time!!!

  6. PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/gamerokr/public_html/download/ezdwnld.php on line 7

    I got this error while triyin to upload a 2gb file~!!!! Please help

  7. that’s the max execution time configured in php.ini… for files larger than 1GB, 30 seg could be short time. (sorry for my bad english :D

  8. exactly what i need!!

    thanks a lot :)

    regards

  9. thankkkkk but how is multi file line pleasesss

  10. at the beginning of your script, put this line of code

    no need to modify the PHP.ini … ^_^ your script can run from day to day!

  11. Where can I put script and how?

  12. You can run that script from the folder,you wish to get uploaded in your server

  13. Warning: fwrite() expects parameter 1 to be resource, boolean given in C:\wamp\www\php_sandbox\up.php on line 13

    this warning alll over the page

  14. i’m not expert and i want to know how can i convert this code in the script that i can upload?

  15. what is your exact intention?..i will help you

Leave a Reply