Want help regarding coding

Discussion in 'Programming' started by sunilm87, Feb 1, 2009.

  1. #1
    is there any script to automatically download a file from a location at a particular time frame or it a possibility to design one... and what all are necessary to do tht..
     
    sunilm87, Feb 1, 2009 IP
  2. rohan_shenoy

    rohan_shenoy Active Member

    Messages:
    441
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    60
    #2
    I don't know if any exist already, but it can be done. You need to look into cron jobs and some basic PHP functions!
     
    rohan_shenoy, Feb 1, 2009 IP
  3. hassanahmad1

    hassanahmad1 Active Member

    Messages:
    150
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    60
    #3
    Yea, you can download a file through a php script but you will need to use cron jobs to download at particular time.
     
    hassanahmad1, Feb 1, 2009 IP
  4. harrisunderwork

    harrisunderwork Well-Known Member

    Messages:
    1,005
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    135
    #4
    Cron jobs + Curl + me => Perfect script ;p
     
    harrisunderwork, Feb 1, 2009 IP
  5. DotDotDash

    DotDotDash Peon

    Messages:
    49
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You could use both PHP and Cron to complete this job. You could probably get someone to patch you up a simple script in no time. Wouldn't cost you much.
     
    DotDotDash, Feb 2, 2009 IP
  6. MayurGondaliya

    MayurGondaliya Well-Known Member

    Messages:
    1,233
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    170
    #6
    You need to setup cron jobs in order to download files from remote location at specific intervals.

    WGET <YOUR DOWNLOAD URL>

    File will be downloaded in the present working directory.
     
    MayurGondaliya, Feb 2, 2009 IP