May 25, 2013


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. What if the file need username and password to download. Is it possible to add that option? Will be very helpful…

    Thanks

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

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

  4. 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

  5. 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

  6. exactly what i need!!

    thanks a lot :)

    regards

  7. thankkkkk but how is multi file line pleasesss

  8. 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!

  9. Where can I put script and how?

  10. 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

    • hey there and thank you for your information – I’ve cirnaetly picked up something new from right here. I did however expertise some technical issues using this web site, as I experienced to reload the web site a lot of times previous to I could get it to load properly. I had been wondering if your web host is OK? Not that I am complaining, but sluggish loading instances times will sometimes affect your placement in google and can damage your high-quality score if advertising and marketing with Adwords. Anyway I’m adding this RSS to my e-mail and could look out for much more of your respective fascinating content. Ensure that you update this again soon..

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

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

  13. 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

  14. 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

  15. 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

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

  17. downspout says:
  18. 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

  19. Luc Richard says:

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

  20. 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

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

  22. 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.

  23. Please can anyone give me tips to upload multiple files?

  24. Giving “500 Internal Server Error” :(

  25. I have a 500 error in bluehost

  26. BravooooOOOOooooOOOO

    thanks very very much

    greats

  27. Rapidleech Script will be helpful

  28. 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.

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

  30. greaaaaaaaaatttttttttttttttttttt……thanxxxxxxxxxxx alooooooooottttttttt

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

  32. 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.

  33. Work. Tnx !

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

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

  36. 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

  37. 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.

  38. Thank you very much .. :)

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

  40. Thanks! It works perfectly!

  41. Awesome script! I want to shift my site from one host to another. I hope your great script will help me much.
    Thanks a lot! :)

  42. You just saved my life!!!
    Thank you.

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

  44. The script works buth with some bugs. The script upload file up to 1GB. When I try to upload files over 1GB it stop upload when it reaches 1GB. Any suggestion?

  45. errors

    Warning: fopen(alexa-top-ranks.csv.zip) [function.fopen]: failed to open stream: Permission denied in D:\Hosting\8591561\html\rite\script.php on line 5

    Warning: fwrite(): supplied argument is not a valid stream resource in D:\Hosting\8591561\html\rite\script.php on line 7

    • got it working thanks had to change file permissons from the cpanel do not work when i tried to change the permission with filezilla thankyou

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

*