oto kod:
- Kod: Zaznacz cały
<?php
$adres='http://pogoda.interia.pl/miasta?id=11699';
$strona=file_get_contents($adres);
$adres=substr($adres, 0, 24);
$temperatura_odleglosc=strpos($strona, '<span class="tex2B" style="font-size:14px;">');
$temperatura=substr($strona, $temperatura_odleglosc, 47);
$obrazek_odleglosc=strpos($strona, '/img/ikony/');
$obrazek_link=$adres.substr($strona, $obrazek_odleglosc, 23);
$obrazek='<img src="'.$obrazek_link.'" alt="Pogoda" />';
$tresc.='Temperatura: '.$temperatura.'°C<br />';
$tresc.=$obrazek;
?>
wyświetla się ostrzeżenie:
- Kod: Zaznacz cały
Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /virtual/m/a/marek.ugu.pl/pogoda.php on line 3
Warning: file_get_contents(http://pogoda.interia.pl/miasta?id=11699) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /virtual/m/a/marek.ugu.pl/pogoda.php on line 3
Czy ktoś wie o co może chodzić?