Runescape Highscores [solved]

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
king spengo
Forum Newbie
Posts: 8
Joined: Sat Jun 16, 2007 7:13 am

Runescape Highscores [solved]

Post by king spengo »

Hi I'm desiging a website for a clan I am in for a game called Runescape. I would like to design a hiscore list for clan members which grabs their highscores from the website.

The address for the highscores is http://hiscore.runescape.com/index_lite ... ing_Spengo and displays the following information:

157621,1408,12135730 298095,74,1119993 370244,70,751998 363536,75,1259782 324898,75,1222751 607237,60,274534 260546,53,139503 155988,77,1505495 190778,75,1244258 447372,71,850148 670352,52,123747 188539,73,1041277 532415,52,123962 86960,66,506357 380536,55,168966 561390,62,367608 118932,53,137059 57124,64,407680 107646,59,258856 294756,43,55525 120255,46,68075 183307,48,91476 176855,43,54521 30472,62,362159

I need to be able to search the above information for the values that are embolded. I am using the following code to grab this information from the webpage:

Code: Select all

<?php
$array = file('http://hiscore.runescape.com/index_lite.ws?player=King_Spengo');
$content  =  implode("",  $array);
?>
Of course the information will be different for each player so can anyone point me in the right direction on how to select the values I want.
Last edited by king spengo on Wed Aug 15, 2007 6:16 pm, edited 1 time in total.
User avatar
CoderGoblin
DevNet Resident
Posts: 1425
Joined: Tue Mar 16, 2004 10:03 am
Location: Aachen, Germany

Post by CoderGoblin »

Where do you get the requirement list from (the bold items) ?

array-intersect may be of use if you have them both as an array.
king spengo
Forum Newbie
Posts: 8
Joined: Sat Jun 16, 2007 7:13 am

Post by king spengo »

The values in bold are the player's skills in the game which range from 1 to 99, it is those values I wish to display in my own hiscore list.
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

king spengo wrote:The values in bold are the player's skills in the game which range from 1 to 99, it is those values I wish to display in my own hiscore list.
Well if you know that the skills are limited to 2-3 digits, it should be easy to extra them.
Post Reply