title: Download external XML file every day
body: <p>I make use of an external XML file I can get from a certain URL. Now there is a problem regarding the getting of the XML file, because if you try too much times to get the file, you don't get anything at all, presumably to limit the amount of requests.</p>
  
  <p>Is there a possibility to download via PHP the XML file every day to limit the requests to the external server. </p>
  
  <p>I have checked what options I have and I saw that CRON is the most found solution to this problem. But I want to do this via PHP if that is possible, because I don't have the access to the server to setup CRON.</p>
  
  <p>Does anyone have any experience with downloading an XML file to your own server and use that, and download that XML file daily to limit the requests?</p>
  
  <p>I have this code to get the actual XML file:</p>
  
  <pre><code>$xml = file_get_contents("my-xml-file-url-external");
  file_put_contents("my-path-to-save-xml-file", $xml);
  </code></pre>
  
  <p>But how can I make sure this gets called every day?</p>