<?php // Zmień 1201286 na kod swojego miasta $url = 'http://pogoda.wp.pl/mi.html?mid=1201099'; // Pobieranie i wy?wietlanie danych $link = curl_init($url); curl_setopt($link, CURLOPT_REFERER, 'http://pogoda.wp.pl'); curl_setopt($link, CURLOPT_RETURNTRANSFER, TRUE); $wynik = curl_exec($link); curl_close($link); $wynik = explode('<div style="float:right; width:40%; font-family: Verdana, Arial, Helvetica, sans-serif; font-style: normal; font-variant: normal; font-weight: bold; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal; color:rgb(0, 0, 0); text-align:right; padding-top:5px;">', $wynik, 2); $wynik = explode('<!--div class="boxMorePrognoza"><a href="#psz">Prognoza szczegółowa</a> » <a href="#puz">Twoje obserwacje</a> »</div-->', $wynik[1], 2); if($temp_start=$temp_stop) { $dane['temperatura'] = $temp_start; } else { $date['temperatura'] = 'od '.$temp_start.' do '.$temp_stop; } echo '<html> <head> <base href="http://pogoda.wp.pl"> <style type="text/css"> body { font-family: Verdana, sans-serif; font-size: 10px; } h1 { font-size: 14px; font-weight: bold; } .sub { font-size: 13px; } </style> </head> <body> <table width="308" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="90" style="padding-left: 4px;" valign="top">'.str_replace(array('height="83" ', 'width="83" ', 'border="0" '), array('/'), trim($wynik[7])).'</td> <b>Temperatura:</b> '.$dane['temperatura'].'<br> <b>Kierunek wiatru:</b> '.$dane['wiatr']['kierunek'].'<br/> <b>Szybkość wiatru:</b> '.$dane['wiatr']['szybkosc'].'<br/> <b>Czynnik chłodzący:</b> '.$dane['wiatr']['chlodzenie'].'</td> </tr> <tr> <td width="308" height="1" colspan="2" align="center"> <table width="98%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="1" background="theme/konin/images/odstep_poz.gif"></td> </tr> </table> </td> </tr> </table>'; ?>
Mam taki kod pogody pobierającym ja z serwisu wp.pl. I mam taki klopot skrypt ten przejmuj mi linki tzn mam link do pliku login.php w takiej formie a on mi robi http://pogoda.wp.pl/login.php Proszę o pomoc jak to naprawic

