This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$sehir_kodu = "2344116"; // İstanbul | |
$url = "http://weather.yahooapis.com/forecastrss?w=".$sehir_kodu."&u=c"; | |
$feed = file_get_contents($url); | |
preg_match('@<yweather:condition text="(.*?)" code="(.*?)" temp="(.*?)" date="(.*?)" />@', $feed, $suan_hava); | |
preg_match_all('/<img src="(.*)"\/>/Usi', $feed, $img); | |
$Suan_Hava_Sicakligi = $suan_hava[3]; | |
$Suan_Hava_Ikon_Kodu = $suan_hava[2]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title>Popup Example</title> | |
</head> | |
<body> | |
<script> | |
function popupCallback(str){ | |
alert("This is callback:" + str); | |
} |