February 4, 2012


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.

Comments

  1. nshop1 says:

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

    Thanks

  2. Russer says:
  3. Chaabane says:

    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 -_-’

  4. Dheeraj says:

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

  5. Dheeraj says:

    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

  6. p2pguy says:

    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

  7. ghprod says:

    exactly what i need!!

    thanks a lot :)

    regards

  8. phoenix0 says:

    thankkkkk but how is multi file line pleasesss

  9. H.A.C says:

    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!

  10. wecvb says:

    Where can I put script and how?

  11. getsam123 says:

    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

  12. am100 says:

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

  13. admin says:

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

  14. am1000 says:

    my problem is this: i have a lot file on hotfile and i want to transfer all on my server so this script can help me? and how can i do exactly? how can i do step by step thanks a lot

  15. am1000 says:

    thanks so my problem that i have a lot file on hotfile server and i want to trasnfer all to another server. i don’t have premium accuont so this script can help me? i try like you have said but it give me error? so can you explain me how can i do step for step? thanks a lot

  16. FqdaN.Com says:

    my problem is this: i have a lot file on hotfile and i want to transfer all on my server so this script can help me? and how can i do exactly? how can i do step by step thanks a lot

  17. Ali says:

    I want to remoce 20 seconds limit in php.ini, is there a way to do that?
    please reply asap!

  18. downspout says:
  19. jiga says:

    Warning: fopen() [function.fopen]: URL file-access is disabled in the server configuration in /homepages/35/d298792101/htdocs/remote_upload/index.php on line 4

    How to solve this problem? plz i need help

  20. Luc Richard says:

    Don’t do this it steels your password for your site, now I’m locked out of my cpanel.

  21. albert says:

    this scipt not work on byethost
    only blank page can shown
    file not transfered
    can you help me,please?

    sorry for my bad english
    i from indonesia

  22. apenk says:

    what about the ’500 Internal Server Error’ ???

  23. Ramonfer says:

    Another site to Upload Files on Multiple Hosts is http://www.multisiteupload.com .
    You can upload files on 12 Hosts with only 1 click.
    Works fine.

  24. Girisoft says:

    Please can anyone give me tips to upload multiple files?

  25. JC says:

    Giving “500 Internal Server Error” :(

  26. Oslow says:

    I have a 500 error in bluehost

  27. BEHESHT says:

    BravooooOOOOooooOOOO

    thanks very very much

    greats

  28. Sudhan says:

    Rapidleech Script will be helpful

  29. JohnC. says:

    I tested this on my site, downloaded from my Rapidshare Premium account, using a link like http://user:pass@servernumber.rapidshare.com/234234234/file.rar, it worked perfectly.

    Thanks a lot for the script.

  30. Dheeraj says:

    i wana upload several files at once… how to do that?? :|

  31. hasgar says:

    greaaaaaaaaatttttttttttttttttttt……thanxxxxxxxxxxx alooooooooottttttttt

  32. Simple php says:

    I like how on rez apps they ask when u graduated from school 2 find out when u were born.

  33. DAR says:

    Forbidden
    You don’t have permission to access XXXX/remote.php on this server.

    Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

  34. Bidi says:

    Work. Tnx !

  35. kasm says:

    hi, the script works grat on hostgator i wana ask does this script has any security issues because im afraid to be banned

  36. Thats what I always wanted. thank you very much !!!!!!!!!!!!!!

  37. Woah! I’m truly enjoying this format:theme for the website. It is very simple, though great. A lot of times it can be difficult to obtain the middle ground between usability as well as appearance. We may state you’ve done an superb job. Additionally, the weblog starts extremely quick to me with Firefox. Outstanding Weblog

  38. Gocha says:

    sry, but in mind that BUFSIZ works as a length of bytes, it doesn’t work! If i would like to write only 1000bytes of length, it ignores and writes file fully.

  39. Amila says:

    Thank you very much .. :)

  40. exsr says:

    Works like a charm, nice piece of PHP coding :D

  41. Thanks! It works perfectly!

  42. Kamrul says:

    Works like a charm :) Thanks a lot buddy :)

Trackbacks

  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. [...]

Speak Your Mind

*