if (!$date) $date = getDateFormat(); 

$ch = curl_init('http://www.datalarburdangelecek.com'); 
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); 
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); 
    curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.83 Safari/537.1'); 
    curl_setopt($ch,CURLOPT_ENCODING,"gzip");
    $url= curl_exec($ch); 
    curl_close($ch); 

$xml = simplexml_load_string($url); 
$id  = (string)$xml->attributes()->id;