Jak pobrać dane (np. liczbę słuchaczy) z poniższej strony:
http://62.233.164.156:8000/index.html ?
Próbowałem następującym skryptem, ale bez sukcesu:
[php:1:89ee891fae]
<?php
$f1 = @fopen("http://62.233.164.156:8000/index.html", "r");
if ($f1) {
while(!feof($f1)) $strona1= fread($f1); fclose($f1);
$strona1 = preg_replace("/r/", "", $strona1);
$strona1 = preg_replace("/n/", "", $strona1);
$strona1 = preg_replace("/ /", "", $strona1);
preg_match("Listener Peak: </font></td><td><font class=default><b>(.*?)</b>", $strona1, $dat);
$dat = substr($dat[0], -14, -4);
global $dat;
}
echo "Słuchaczy: $dat";
?>[/php:1:89ee891fae]