First, I would use
$html = file_get_contents('http://209.105.250.69:8382/');
to retrieve the remote file. Then I would use:
$doc = new DOMDocument();
$doc->loadHtml($html);
to build a DOM document of it. The you can use xpath to retrieve the information from it:
$selector = new DOMXPath($doc);
$result = $selector->query('....');
Then, for example, you can use the following code to retrieve stream stats:
$stats = array(
'Stream Title' => '',
'Stream Description' => '',
'Bitrate' => ''
// ...
);
foreach($stats as $key => $val) {
$result = $selector->query("//td[text()='$key:']");
foreach($result as $node) {
$stats[$key] = $node->nextSibling->nextSibling->nodeValue;
}
}
var_dump($stats);
// output the stream description
echo $stats['Stream Description'];