Problem resen!
palo mi je napamet da jednostavno ucitam link u file() i radi!
samo sto prvo proverim dal je server aktivan, evo koda:
Kôd:
$url = "http://xoap.weather.com/search/search/index.php?where=Kraljevo";
$urldata = parse_url($url);
$serveractive = fsockopen($urldata['host'], 80, $errno, $errstr, 1);
if ($serveractive) print_r(file($url));
i lepo dobijem ovo:
Kôd:
Array
(
[0] => <?xml version="1.0" encoding="ISO-8859-1"?>
[1] => <!--This document is intended only for use by authorized licensees of The Weather Channel. Unauthorized use is prohibited. Copyright 1995-2005, The Weather Channel Interactive, Inc. All Rights Reserved.-->
[2] => <search ver="2.0">
[3] => <loc id="YIXX0023" type="1">Kraljevo, Serbia And Montenegro</loc>
[4] => </search>
[5] =>
)
sto mi i treba
pozdrav svima i izvinite sto sam postavio pitanje na koje sam sam dao odgovor