[PHP] Habbo's Online

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?

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>!';
?>
 

xUnknownGamer

The Best Noob Around.
Feb 8, 2013
81
7
<div id="people-inside">
<b><span><span class="stats-fig">{online}</span> users online now</span></b>
<i></i>
</div>


There you go mate, if you dont want it in a speech bubble, let me know.
 

Users who are viewing this thread

Top