Having recently had some problems with my code which calls for artist data fed from Last.FM API, I'm looking for a different solution but am struggling to find a nice easy way to handle the problem. Currently I have:
<?php $feed = simplexml_load_file("http://ws.audioscrobbler.com/2.0/?method=artist.getinfo&artist=anartistname&api_key=01234567890");
$xml = simplexml_load_file($feed);
$info = $xml->artist->bio->summary; ?>
<?php echo $info; ?>
Obviously, this is a problem for security as I don't want to enable fopen. Can anyone point me in the direction of a solution? Most people suggest cURL but I have no clue about using it so would be grateful for some help there.