Answer the question
In order to leave comments, you need to log in
How to download XML file via php using cron at specific time?
How to run a php script to download an XML file (and how to download the file) using cron at 6:00 and 18:00?
Answer the question
In order to leave comments, you need to log in
$xml = file_get_contents("http://URL_XML.xml");
file_put_contents("PATH/LOCAL_FILENAME.xml" , $xml);
crontbab -e
0 6,18 * * * /path/script.php
masterhost.ru/support/doc/cron
For a simple download, you can do with wget or curl
rus-linux.net/nlib.php?name=/MyLDP/internet/wget.html
proft.me/2013/08/17/spravochnik-po -commandam-wget-i-curl
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question