How can i do this in cron job?

Discussion in 'Programming' started by web@master24, Aug 25, 2011.

  1. #1
    Hello, i want download a xml file every week from a external server, and keep updated that xml file in my own server, the xml is a list of songs, so the script will take the xml from the own server reducing the loading time. Somebody how can i do this? NOTE: i dont want execute the xml, only download to my server every x time.
     
    web@master24, Aug 25, 2011 IP
  2. sarahk

    sarahk iTamer Staff

    Messages:
    28,838
    Likes Received:
    4,542
    Best Answers:
    123
    Trophy Points:
    665
    #2
    Simple...

    Just write a script that does exactly that when you call it from your browser then add the cron job - that can be tricky depending on the admin system and we'd need to know more, sometimes it takes a bit of playing around to get it right.
     
    sarahk, Aug 25, 2011 IP