<?php
$username = "example";
$password = "elpmaxe";
$url = "www.example.com";
ob_start();
readfile("http://{$username}:{$password}@{$url}:2082/frontend/x3/stats/bandwidth.html");
$page = ob_get_contents();
ob_end_clean();
preg_match("/<img src=bar.gif height=8 width=(.+)><img src=wbar.gif height=8 width=(.+)><\/td><td>(.+) used/", $page, $match);
$bar_used = $match[1];
$bar_free = $match[2];
$percent = $match[3];
echo "<div style=\"background-color: #006600; border: 1px solid #000000; float: left; width: {$bar_used}px;\"> </div><div style=\"border: 1px solid #000000; float: left; width: {$bar_free}px;\"> </div> {$percent} used.";
?>