add schedule downloader

This commit is contained in:
Rob 2019-09-20 17:32:48 +02:00
parent 568c51e8eb
commit 685dbc3a07
1 changed files with 9 additions and 0 deletions

9
getSchedule.php Normal file
View File

@ -0,0 +1,9 @@
<?php
$ch = curl_init('https://datenspuren.de/2019/fahrplan/schedule.xml');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$output = curl_exec($ch);
curl_close($ch);
file_put_contents('schedule/schedule.xml', $output);