What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Question...

Question...
Author: Message:
Eddie
Veteran Member
*****


Posts: 2078
Reputation: 30
32 / Male / Flag
Joined: Oct 2005
Status: Away
O.P. Question...
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 *-)
...there used to be a signature here :)
07-02-2007 12:25 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Question... - by Eddie on 07-02-2007 at 12:25 PM
RE: Question... - by MeEtc on 07-02-2007 at 03:20 PM
RE: Question... - by user13774 on 07-02-2007 at 08:26 PM
RE: Question... - by andrewdodd13 on 07-03-2007 at 10:01 AM
RE: Question... - by Eddie on 07-04-2007 at 07:22 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On