|
|
Forum moderator: bigblog |
uCoz Community For Webmasters Custom Solutions about php script (some other need a help thread of mine xD) |
about php script |
is that posible? if i'm free user. implement php script in other method?
i know this feature's lock n just paid service. but is that posible if i do making other server host and upload that php script on there n then i do some of script for load that script like blogspot do? this is the php script Code <?php $url = "http://data.bmkg.go.id/propinsi_15_1.xml"; // from http://data.bmkg.go.id/ sesuaikan dengan lokasi yang diinginkan $sUrl = file_get_contents($url, False); $xml = simplexml_load_string($sUrl); for ($i=0; $i<sizeof($xml->Isi->Row); $i++) { $row = $xml->Isi->Row[$i]; if(strtolower($row->Kota) == "Yogyakarta") {// Yogyakarta merupakan contoh kota yang diambil data cuacanya dari bmkg echo "<b>" . strtoupper($row->Kota) . "</b><br/>"; echo "<img src='http://www.bmkg.go.id/ImagesStatus/" . $row->Cuaca . ".gif' alt='" . $row->Cuaca . "'><br/>"; echo "Cuaca : " . $row->Cuaca . "<br/>"; echo "Suhu : " . $row->SuhuMin . " - ".$row->SuhuMax . " °C<br/>"; echo "Kelembapan : " . $row->KelembapanMin . " - " . $row->KelembapanMax . " %<br/>"; echo "Kecepatan Angin : " . $row->KecepatanAngin . " (km/jam)<br/>"; echo "Arah Angin : " . $row->ArahAngin . "<br/>"; break; } } ?> n then i'm upload that script with name weather.php on other free server host who support php for example : blablabla76.net/weather.php n then i place this code on my ucoz template Code <object type="text/html" data="http://blablabla76.net/weather.php"></object> is that work? |
even i'm upload that script on other host n im just load it up on our web?
ok thx so much bigblog |
| |||
| |||