- file_get_contents: documentation ( source)
- simplexml_load_string: documentation ( source)
<?php
$url = "http://webexpress.cargus.ro/history/infoNT2_XML.php?cod_nt=TSD22731818I";
$response = file_get_contents($url);
$xml = simplexml_load_string($response);
$result = $xml->xpath("//data_eveniment");