1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Download from one site then reupload on multiple others ?

Discussion in 'PHP & Perl' started by dar1x, Jan 14, 2014.

  1. dar1x

    dar1x Registered Member

    Joined:
    Jul 13, 2013
    Messages:
    90
    Likes Received:
    57
    Hello everyone,

    I need a script which would work automatically with cron and which could download files every 1,2,3 or so minutes from one site and then upload them on few of other sites, do you know any script which could do that ?

    Thanks
     
  2. mypmmail

    mypmmail Junior Member

    Joined:
    Jan 31, 2008
    Messages:
    111
    Likes Received:
    27
    You should be able to use wget to grab whatever files you need with cron.

    hxxp://www.gnu.org/software/wget/manual/wget.html

    Added:
    As this is PHP related sub-forum, you can also use cUrl from php.
    But if you grabbing a large file, then you need to do some coding to set the options to have bigger limits.
     
    • Thanks Thanks x 1
    Last edited: Jan 14, 2014
  3. bartosimpsonio

    bartosimpsonio Jr. VIP Jr. VIP Premium Member

    Joined:
    Mar 21, 2013
    Messages:
    8,931
    Likes Received:
    7,527
    Occupation:
    ZLinky2Buy SEO Services
    Location:
    ⇩⇩⇩⇩⇩⇩⇩⇩⇩⇩⇩⇩
    Home Page:
    Yup, wget and curl are my initial guesses too. Of course you'll need to script them together, so Perl and PHP come into hand.
     
    • Thanks Thanks x 1
  4. dar1x

    dar1x Registered Member

    Joined:
    Jul 13, 2013
    Messages:
    90
    Likes Received:
    57
    I completely forgot about wget, thanks guys, i manage to get it up and running :).