get_option('lfm_username'), 'limit' => get_option('lfm_page_limit'), ), $atts)); $raw = file_get_contents("http://ws.audioscrobbler.com/2.0/?method=" . "user.getrecenttracks&user={$user}" . "&api_key=" . get_option('lfm_apikey') . "&limit={$limit}"); $xml = new SimpleXMLElement($raw); foreach ($xml->recenttracks->track as $track) { $raw2 = file_get_contents("http://ws.audioscrobbler.com/2.0/?method=" . "track.getinfo&api_key=" . get_option('lfm_apikey') . "&artist=" . urlencode($track->artist) . "&track=" . urlencode($track->name)); $xml2 = new SimpleXMLElement($raw2); ?>
My Recent Tracks