Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 8 of 8
  1. #1
    Join Date
    Apr 2006
    Location
    Australia
    Posts
    307
    Tokens
    0

    Exclamation Grabbing XML-RPC

    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:

    Quote Originally Posted by PuzzlePirates
    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?
    Last edited by Zaub; 12-12-2006 at 07:06 AM.

  2. #2
    Join Date
    Aug 2004
    Location
    bristol
    Posts
    3,799
    Tokens
    0

    Latest Awards:

    Default

    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.
    Last edited by nets; 12-12-2006 at 09:24 PM.
    kinda quit.

  3. #3
    Join Date
    Apr 2006
    Location
    Australia
    Posts
    307
    Tokens
    0

    Default

    Well go to www.puzzlepirates and it says how many Pirates on the hotel, we need that

  4. #4
    Join Date
    Feb 2006
    Location
    Ontario Canada
    Posts
    4,587
    Tokens
    0

    Latest Awards:

    Default

    wouldnt it just be same as habbos online with the url changed?

    .:.:#14:.:. .:.: Impossible Is Nothing :.:. .:.: 845 Rep:.:.
    .:.: Stand up for what is right, even if you stand alone:.:.


  5. #5
    Join Date
    Aug 2004
    Location
    bristol
    Posts
    3,799
    Tokens
    0

    Latest Awards:

    Default

    PHP Code:
    $lines file('http://www.puzzlepirates.com/status.xhtml');
    echo 
    trim(strip_tags($lines['131'])); 
    Haven't tested.
    kinda quit.

  6. #6
    Join Date
    Nov 2006
    Posts
    163
    Tokens
    0

  7. #7
    Join Date
    Apr 2006
    Location
    Australia
    Posts
    307
    Tokens
    0

    Default

    Thanks a lot guys!

  8. #8
    Join Date
    Dec 2006
    Posts
    1
    Tokens
    0

    Default

    Thanks Fellas.


    Cheers Pete

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •