Anyway, can anyone help me with this little code?
<?php
$online = file_get_contents("http://www.habbo.com.au/habbo_count_xml.action") or die(" 0");
$onlinee = trim(strip_tags($online));
echo $online;
?>
All it does is show how many people are online on Habbo Australia. It works, except when Habbo is down (it is now because the servers carked it) it gives me this.
Warning: file_get_contents(http://www.habbo.com.au/habbo_count_xml.action) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.0 503 Service Unavailable in /home/habfront/public_html/templates/habbo_front_1/index.php on line 132
It still shows the 0 for when it dies except how do I get it not to show the error?
There's also another problem with it, well I'm using Joomla and when Habbo is down, along with the error, it also stops the component and modules and that from showing which is really annoying.
So how do I make it so it doesn't show the error and just shows the 0 and the whole site will work properly?
Once again, I'm a PHP nub!


