whats the code to get how many habbos online to show on your site?

whats the code to get how many habbos online to show on your site?
recently done here..
but also on habboring.com
Post Meter
______________________________________________
400 450 500 550 600 650 700 750 800 850 900-1k
Green=Done | Orange=Almost | Red=Not Done
______________________________________________
Habbo fury Coming Soon!
My Img tag has ran away
PHP Code:<?php
$page = file_get_contents("http://www.habbo.co.uk");
$start = explode('<td id="topbar-count">', $page, 2);
$end = explode(' members online</td>', $start[1], 2);
$amount = trim($end[0]);
echo "There are $amount Habbos online!";
?>
I think?
That wont work with the new layout!
This should thoughPHP Code:<?php
$page = file_get_contents("http://www.habbo.co.uk");
$start = explode('<span class="stats-fig">', $page, 2);
$end = explode('</span>', $start[1], 2);
$amount = trim($end[0]);
echo "There are $amount Habbos online!";
?>
There's some script where it grabs it from an XML file, can't remember the URL to it though.
Want to hide these adverts? Register an account for free!