<?php
function photo_url($p, $size='s', $ext='jpg') {
return "http://static.flickr.com/{$p['server']}/{$p['id']}_{$p['secret']}_{$size}.{$ext}";
}
$url = "http://flickr.com/services/rest/?method=flickr.people.getPublicPhotos".
"&user_id=56053642@N00&per_page=2&api_key=3aba8184848f9263b80795c95529bcd1";
$xml = @simplexml_load_file($url) or die("Unable to contact Flickr");
$perpage = $xml->photos['perpage'];
$total = $xml->photos['total'];
foreach($xml->photos->photo as $photo) {
echo '<a href="'.photo_url($photo,'o').'" target="_blank">';
echo '<img src="'.photo_url($photo).'" height="75" width="75" />';
echo '<br />'.$photo['title'].'</a><br />';
}
?>