","",$fp_data); $fp_data=ereg_replace(".*","",$fp_data); list($current,$status,$peak,$max,$reported,$bit,$song) = explode(",", $fp_data, 7); if ($status == "1") { $online = "Currently Online"; //echo "$host:$port -> $current/$max listening to $song @ $bit kbit/s"; $bandwidth = round($bit / 8 * $current / 1024,2); $bandwidthKB = round($bit / 8 * $current); echo "$current/$max listening to $song and currently streaming at $bit" . "kbit - and using $bandwidthKB" . "KB/s of bandwidth"; } else { $online = "Currently Offline"; echo "$online ($host:$port)"; } } ?>