Szukam skryptu aby pokazywal aktualna pogode cos ala tu:
http://www.coneyislandarcade.ehost.pl/CMS/test.phpNiestety szukalem w google i tu znalazem takie cos:
Przeobic tego juz nie potrafilem prosze o pomoc!
<?
$fp = fsockopen("pogoda.onet.pl", 80
, $errno, $errstr, 30
); if (!$fp) {
echo "$errstr ($errno)<br />n"; } else {
$out = "GET /0,13057,38,miasto.html HTTP/1.1rn";
$out .= "Host: pogoda.onet.plrn";
$out .= "Connection: Closernrn";
$st="";
}
}
$teraz=strpos($st,"class=a2b><IMG src=0 width=14 height=14></TD></TR><TR>"); $end=strpos($st,"BR><IMG src=0 width=6 height=6 border=0></TD></TR><TR>"); $ile=$end-$teraz;
$s2=substr($st,$teraz,$ile-1
); $s2=str_replace("_d/","http://pogoda.onet.pl/_d/",$s2); $s2=str_replace("<TD class=a1b width="100%">","<TD class=a1b>",$s2); $s2=str_replace("<BR><IMG src=0 width=2 height=2 border=0><BR>"," ",$s2); $teraz=strpos($s2,"<TD align=center"); ?>