Server to Server file transfer script

October 27th, 2006

It is often necessary for a web master to transfer files from one site to another.Whether it be to install open source software or to move a site, the ability to transfer a file directly from one web server to another can be a real time saver.

This is where this PHP script comes into play. Once uploaded onto the destination server it should be accessed using your browser. It will display a form in which you can enter the details of the source file and server and it will download the file directly from the source file server onto your server.

Download sst-2.1-php.zip

41 Responses to “Server to Server file transfer script”

  1. Aqeel Syed says:

    Yes, this is a great utility, a very informative blog you have Abdussamad :)

    Posted on 28 Mar 2007 Reply
  2. Dan says:

    why i see after i access sst.php: “Not Found” ??

    Posted on 07 Oct 2007 Reply
    • Abdussamad Abdurrazzaq says:

      It works fine for me. Maybe you should contact the developers using the link to their homepage above.

      Posted on 07 Oct 2007 Reply
  3. samix says:

    wooow it worked great but one thing is bad, which is it transfer only files with max size 50MB
    is there a solution for this dissadvantage?

    Posted on 10 Feb 2008 Reply
  4. Nickb says:

    HI,
    I would love it if this script would go larger than 50mb. Any one found a way to change it?
    Cheers

    Posted on 03 May 2008 Reply
    • Abdussamad Abdurrazzaq says:

      Ttry and change the size limit on line 155 of downloader.php. Just change the number 5 to a higher number:

      $maxsize=1048576*100;

      Also increase the time out limit on line 136 of sst.php:

      set_time_limit(10000);

      It would probably be easier to just use an online utility like the one given below:

      http://www.transloader.com/tl.cgi

      Or another script like rapid leech

      http://rapidleech.com/

      Posted on 03 May 2008 Reply
      • Aqeel Syed says:

        Another utility to do this is Net2FTP, you can install Net2FTP at you server and then use this excellent script as an FTP manager. Serve to server file transfer is also possible with Net2FTP.

        http://net2ftp.com

        Posted on 31 May 2008 Reply
        • Abdussamad Abdurrazzaq says:

          Thats a nice program there Aqeel. Thanks for pointing it out.

          Posted on 31 May 2008 Reply
  5. Aniket says:

    Thank you…nice script

    Posted on 28 Dec 2008 Reply
  6. hasitha says:

    thanks, it works fine for me. thanks again

    Posted on 09 Jan 2009 Reply
  7. Juliya says:

    Alternatively you can use this web-based interface – http://www.directransfer.net

    Posted on 07 Feb 2009 Reply
  8. irfan says:

    Rapidleech fastest server in the world speed in MBps
    43 plugins

    http://www.palooo.co.cc/ssecure

    plz check and reply

    Posted on 23 Feb 2009 Reply
  9. Aniket says:

    Ya irfan … but Rapidleech is also the first one to b banned by web hosts…Right???

    Posted on 28 Feb 2009 Reply
  10. Jingle says:

    Thanks for this script!!

    Posted on 06 Jul 2009 Reply
  11. free online dating says:

    it works fine. good script for remote file uploading.

    Posted on 07 Aug 2009 Reply
  12. Bahram Ashegh says:

    woooow,
    It’s really doing great. thank you very much man. you are a genius. however there may be similar scripts on the net, but I found this first and it does all I need.
    t t t t t t thanx.

    Posted on 03 Feb 2010 Reply
    • Aniket says:

      @Bahram Ashegh
      Sir..plz help me..
      does this scipt work with a free hosting service?..plz help me… contact me :
      aniketkamble1100@gmail.com
      Help me sir..I’m unable to get this working for my server.. :-(

      Posted on 19 Feb 2010 Reply
  13. Kamrul says:

    Thanks a lot…but transferring speed is low…how to increase the speed??

    Posted on 22 Mar 2010 Reply
    • Abdussamad Abdurrazzaq says:

      Complain to your hosting provider :)

      Posted on 27 Mar 2010 Reply
  14. netbody says:

    works great for me , how to make change :: move multiple files at the same time, and give the moved links after uploaded?

    Posted on 16 Jun 2010 Reply
    • Abdussamad Abdurrazzaq says:

      First zip up the files and then you only have to move one file. Unzip them once they are on the target server :)

      Posted on 23 Jun 2010 Reply
  15. sumon says:

    bro thank you so much for this wonderful script. i am mow using it to my movie downloading site.
    http:/ /.hatemtai.com

    Posted on 12 Sep 2010 Reply
  16. kasm says:

    hi and thx for gd discussion I try this scripts
    most of them helpful but I didnt find a full script e.g progress bar server info and many recommanded options rapidleech is gd but it is so resoursebl and It may lead you to be banned

    Posted on 19 Apr 2011 Reply
  17. razer says:

    I have error when server finish downloading:
    Warning: fopen(/home/*filename*) [function.fopen]: failed to open stream: Permission denied in /home/***/public_html/***/***/downloader.php on line 246
    Warning: fwrite(): supplied argument is not a valid stream resource
    Please help!

    Posted on 07 Jun 2011 Reply
    • abdussamad says:

      Sorry for the late reply. This looks like a permissions problem. Make sure that the target directory is writeable. Chmod it to 777 and try again.

      Posted on 13 Jun 2011 Reply
  18. jean says:

    hey,
    i m getting this error plz help thx:

    Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 66591905 bytes) in /home/sitename/public_html/11/downloader.php on line 166

    i m trying to upload a 240mb file
    help!
    reply thx

    Posted on 15 Jun 2011 Reply
    • abdussamad says:

      You will have to increase the memory limit for PHP scripts. Usually this option can only be set by your hosting provider. So I suggest you contact them for further assistance.

      Posted on 15 Jun 2011 Reply
  19. jean says:

    i have the php.ini so where in the php.ini can i change this?

    Posted on 15 Jun 2011 Reply
    • jean says:

      plz help me to change the file limit to 600mb in the script and in the php.ini

      Posted on 15 Jun 2011 Reply
      • abdussamad says:

        memory_limit is the option in the php.ini file. Be sure to restart apache after you make this change.

        Posted on 15 Jun 2011 Reply
        • jean says:

          hw to restart apache? its only the admin host can do it right? and in the script what i hv to change to make it 600mb..in line 166 there is 4096 what does it mean?reply thx

          Posted on 15 Jun 2011 Reply
          • abdussamad says:

            That line in the script is not relevant to what you want to do.

            You can try adding this code to top of script.inc.php:

            ini_set(‘memory_limit’,’600M’);

            If the above works you won’t have to restart apache. Another way is via the .htaccess file. See this page for more details:

            http://www.php.net/manual/en/configuration.changes.php

            If the above doesn’t work you should contact your hosting provider for assistance. Only they can restart apache if that is indeed required.

            Posted on 15 Jun 2011
  20. Ramya says:

    how to transfer the files from server to server???can you explain it clearly

    Posted on 01 Jul 2011 Reply
  21. [...] saya landing ke sebuah halaman blog milik Abdussamad yang dipublikasikan pada tahun 2006 (sudah cukup lama ya…), dan disana menemukan sebuah tool php [...]

    Posted on 14 Nov 2011
  22. snjflame says:

    don’t use the sst crap, try this

    - create a folder call “downloads” in destination server
    - save this code into .php file and run in destination server
    http://paste.org/46569

    Posted on 10 Mar 2012 Reply
    • Kieran says:

      Thank you so much snjflame that works for me. :)

      Posted on 13 Apr 2013 Reply
  23. Aneeq says:

    Hi, I have found an excellent solution which is as below.

    Source:
    http://phphelp.co/2012/04/09/how-to-do-server-to-server-ftp-transfer-in-php/

    Posted on 09 Apr 2012 Reply
  24. Aleksandar says:

    i want transfer file from http whit login….what change?

    Posted on 30 Oct 2012 Reply
  25. Drew Hammond says:

    why not just use scp?

    or wget if the file is publicly accessible

    Posted on 13 Dec 2012 Reply
    • Abdussamad says:

      Sure if you have shell access you would do that. But most people use shared hosting and that doesn’t come with shell access.

      Posted on 14 Dec 2012 Reply

Leave a Reply

Your email address will not be published. Required fields are marked *