remote uploading

Discussion in 'PHP' started by Ruriko, Mar 26, 2008.

  1. #1
    Anyone have the script that can remote upload files from another server with queue feature? like this

    <?php
      set_time_limit(0);
      ignore_user_abort();
      print "<p>Getting</p>";
      exec("wget http://cseti.homesite.net/afacademyufobook.rm");
      print "<p>Done.</p>";
    ?>
    Code (markup):
    You see this code can only do one file but I want to queue files so it will upload the next file when that file is completed
     
    Ruriko, Mar 26, 2008 IP
  2. Weirfire

    Weirfire Language Translation Company

    Messages:
    6,979
    Likes Received:
    365
    Best Answers:
    0
    Trophy Points:
    280
    #2
    I'm not really understanding why you can't do any more than 1 at a time. Do you mean queue the uploads on seperate requests so that the first file will have started uploading and any further requests will wait till any pending uploads have completed?

     
    Weirfire, Mar 27, 2008 IP
  3. Ruriko

    Ruriko Well-Known Member

    Messages:
    4,023
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    130
    #3
    yea that's what I mean!
     
    Ruriko, Mar 27, 2008 IP
  4. Weirfire

    Weirfire Language Translation Company

    Messages:
    6,979
    Likes Received:
    365
    Best Answers:
    0
    Trophy Points:
    280
    #4
    What about using some sort of FTP system on your web page?

    You could use PHP's FTP functions to do this. For me this method would require the least amount of work to reach the solution that you're looking for.
     
    Weirfire, Mar 27, 2008 IP