$rsn = urlencode($_GET['rsn']); if (!$rsn) die("No rsn specified"); $html = file_get_contents("http://hiscore.runescape.com/lang/en/aff/runescape/hiscorepersonal.ws?user1=$rsn"); $html = str_replace("\n", "", $html); preg_match_all("/.*?(.*?)<\/td>(.*?)<\/tr>/", $html, $matches); for ($x = 0; $x < 24; $x++) { $skill = strip_tags($matches[1][$x]); $data = strip_tags(str_replace("", " ", $matches[2][$x])); if ($data == "Not Ranked") { echo $skill.": --\n"; } else { $ex = explode(" ", $data); echo $skill.": ".$ex[1]."\n"; } }