10 lines
220 B
PHP
10 lines
220 B
PHP
<?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);
|
|
|