Siract
Classic Habbo
- Sep 4, 2011
- 148
- 27
Wrong Section
Hi Devbest,
I have a PHP code that should show how many Habbo's there are online at Habbo.com. But I get this error -
Here is the PHP code I used, is there anything wrong?
I have a PHP code that should show how many Habbo's there are online at Habbo.com. But I get this error -
You must be registered for see links
Here is the PHP code I used, is there anything wrong?
PHP:
<?php
$link = file_get_contents('www.habbo.com/community');
$online = explode('<div id="habbos-online"><div class="rounded"><span>', $link);
$online = explode('</span></div></div>', $online[1]);
$online = trim($online[0]);
$online = str_replace(' members online', '', $online);
echo 'There are '.$online.' Habbos online in <a href="http://www.habbo.com" target="_blank">Habbo.com</a>!';
?>