PDA

View Full Version : Grabbing XML-RPC



Zaub
12-12-2006, 07:06 AM
My friend, Pete plays PuzzlePirates and recently emailed them asking for the PHP code to display how many Pirates are online.

They emailed back saying they don't use PHP, and said this:



Feel free to parse the data from
http://www.puzzlepirates.com/status.xhtml - we don't use PHP; instead, we grab
the numbers internally using XML-RPC.


We just want the number of Pirates online.

Can anyone be nice enough to help?

nets
12-12-2006, 09:24 PM
You don't need to use "XML-RPC" to obtain the data. They said that's what they use, and you can parse the data at that address. What data do you exactly need to obtain? I'm sure I or someone else can write you the necessary PHP script.

Zaub
13-12-2006, 04:59 AM
Well go to www.puzzlepirates and it says how many Pirates on the hotel, we need that :)

Colin-Roberts
13-12-2006, 12:18 PM
wouldnt it just be same as habbos online with the url changed?

nets
13-12-2006, 05:10 PM
$lines = file('http://www.puzzlepirates.com/status.xhtml');
echo trim(strip_tags($lines['131']));
Haven't tested.

:Blobbed
13-12-2006, 05:27 PM
It tested:

http://www.ry.speed-networks.net/pirate.php

Zaub
14-12-2006, 02:25 AM
Thanks a lot guys! <3

Holograph
15-12-2006, 10:14 AM
Thanks Fellas.


Cheers Pete

Want to hide these adverts? Register an account for free!