<?
$adres = "http://www.tr.net/index.shtml";
$Basla = ' <form method=post action="http://tis.tr.net/cgi-bin/search">';
$Bitir = '<span style="font-size:10px;"><A class="link" HREF="http://meteo.tr.net">Tümİller</A></span>';
$dosya = fopen("$adres", "r");
$rf = fread($dosya, 20000);
$grab = eregi("$Basla(.*)$Bitir", $rf, $yazdir);
$yazdir[1] = str_replace("Ankara", "ANKARA", $yazdir[1]);
$yazdir[1] = str_replace("İstanbul", "İSTANBUL", $yazdir[1]);
$yazdir[1] = str_replace("İzmir", "İZMİR", $yazdir[1]);
fclose($dosya);
print "<html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=windows-1254'>
<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-9'>
<title>Hava durumu</title>
</head>
<body bgcolor='#b9d8d9'>";
print $yazdir[1];
print "</body></html>"
?>