Hello guys, another web based question
With the code that collects a number from a certain website, is constantly failing when the connection that site isnt working...here is the code.
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;
Is there a way i can make it so that when the website it collects data from isnt working it just displays "Some" or something, because the "die blablabla" doesnt seem to do that