To nie takie proste, żeby to jedną funkcją php zalatwić. Musisz wysłać żadanie do strony tak jakbyś był przeglądarką, odebrać to co ci zwróci i potem sobie musisz znaleźć to co chcesz (czyli swoją tabelkę).
Był kiedyś na forum podoby przykład, ale gdzie i kiedy to nie jestem wstanie ci powiedzieć. Poszukaj może znajdziesz
edit:
musialem odpoczac od roboty wiec troche poguglalem
znalazlem pewna klase. Masz link do download:
http://www.phpclasses.org/browse/package/3...ml?download=zipmoje przykladowe użycie:
<?php
include('clsHtmlSource.php');
$hs = new HtmlSource();
$hs->host=\"www.interia.pl\";
$hs->page=\"index.html\";
?>
może sobie z tego wyciagniesz co ci potrzeba.
Wyswietla to bodajze strone glowną z interii
edit2:znowu sie nudzilem i znalazlem kod, który kiedyś uzywalem:
<?php
function posttohost($host,$method, $path,$http_version='HTTP/1.1')
{
$results = '';
$fp = fsockopen($host, 80
, $errno, $errstr, 30
); if(!$fp)
{
return false;
}
$header=\"$method $path $http_versionrn\";
$header.= \"Host: $hostrn\";
$header.= \"Accept: application/pdf,text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,image/jpeg,image/gif;q=0.2,*/*;q=0.1rn\";
$header.= \"Accept-Language: en,en-us;q=0.7,pl;q=0.3rn\";
$header.= \"Accept-Charset: ISO-8859-1,ISO-8859-1,utf-8;q=0.7,*;q=0.7rn\";
// $header.= \"Keep-Alive: 300rn\";
// $header.= \"Connection: keep-alivernrn\";
$header.= \"Connection: Closernrn\";
$results.= fgets($fp, 2048
);
if($headpos=strpos($results,\"rnrn\")) {
$headpos+=4;
$header=substr($results,0
,$headpos); $body=substr($results,$headpos); return $body;
}
return FALSE;
}
//i użycie
$body=posttohost('www.interia.pl', 'GET', 'index.html');
if ($body==false)
echo \"Cos sie nie powiodlo\"; else
?>