code:
$data = @file_get_contents("http://www.habbo.com.au/habbo_count_xml.action") or die("Could not get data");
$usercount = preg_replace("/<usercount>([0-9]+)<\\/usercount>/", "\\1", $data);
echo $data;
Shows the number of users.
code:
$data = @file_get_contents("http://www.habbo.com.au/habbo_count_xml.actionaa") or die("Could not get data");
$usercount = preg_replace("/<usercount>([0-9]+)<\\/usercount>/", "\\1", $data);
echo $data;
(Notice the aa at the end of the URL, bumming it up). This works as it should for me. (ie, Could not get data is sent to the browser).
Notice the @ in front of file_get_contents - this disables warnings. (Edit: For that function).
You could also do (as the last line):
echo ($data) ? $data : "No Data";