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

Include XML ?
Author: Message:
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: Include XML ?
It's probably not the most recommended way, but in this case it should do. :)

A more 'professional' way, using regular expressions, would be:
code:
<?php
$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;
?>
Or, if your server has PHP 5 or higher installed, you can use the SimpleXML functions or the XML Reader object to read the XML file.

EDIT: Am I really that slow or are you too fast? :S

This post was edited on 04-17-2007 at 04:49 PM by Matti.
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
04-17-2007 04:47 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Include XML ? - by Eddie on 04-16-2007 at 09:45 AM
RE: Include XML ? - by Nathan on 04-16-2007 at 10:06 AM
RE: Include XML ? - by Eddie on 04-16-2007 at 10:10 AM
RE: Include XML ? - by absorbation on 04-16-2007 at 12:40 PM
RE: Include XML ? - by Eddie on 04-16-2007 at 01:05 PM
RE: Include XML ? - by absorbation on 04-16-2007 at 01:17 PM
RE: Include XML ? - by Eddie on 04-17-2007 at 04:28 PM
RE: Include XML ? - by absorbation on 04-17-2007 at 04:33 PM
RE: Include XML ? - by Eddie on 04-17-2007 at 04:46 PM
RE: Include XML ? - by Matti on 04-17-2007 at 04:47 PM
RE: Include XML ? - by L. Coyote on 04-17-2007 at 04:55 PM
RE: Include XML ? - by Eddie on 04-17-2007 at 04:59 PM


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