All pastes #472424 Raw Edit

Anonymous

public php v1 · immutable
·published 2007-05-05 15:50 UTC
rendered paste body
<?php if (is_single('35')) {$ch = curl_init('http://ws.audioscrobbler.com/1.0/artist/Jedi%20Jane/fans.xml');	curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);	$curl_return = curl_exec($ch);	$xml = simplexml_load_string($curl_return);	echo $xml;	foreach ($xml as $element) {		if ($i< 12)	{		echo '<a href="';		echo $element->url;		echo '">';		echo '<img src="';		echo $element->image;		echo '"/>';		echo '</a>';		}		$i++;		$result = count($element);}elseif (is_single('34')) {