Webarto, to je to, hvala ti, jednostavno i brzo!
Hvala jos jednom!
Citat:
Originalno napisao webarto
PHP kôd:
function curl($url){
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
return curl_exec($ch);
curl_close ($ch);
}
$xml = curl("http://www.sajt-com.com/write1.xml");
$xml = simplexml_load_string($xml);
|