Commit f0efb32f authored by Bc. Peter Štieber's avatar Bc. Peter Štieber
Browse files

Delete index.php

parent c262291b
<?php
/**
* Created by PhpStorm.
* User: uppermost
* Date: 3. 3. 2018
* Time: 19:29
*/
$ch = curl_init('https://aplikacie.zsr.sk/infotabule/StationDetail.aspx?id=136002&t=2');
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
$content = curl_exec($ch);
if (curl_errno($ch)) {
echo 'error:' . curl_error($ch);
} else {
$doc = new DOMDocument();
$doc->loadHTML($content);
$sxml = simplexml_import_dom($doc);
echo '<pre>';
print_r($sxml);
echo '<pre>';
}
curl_close($ch);
?>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment