The page you are looking at now is at this URL: http://pastoid.com/asq
This paste was last updated on March 13, 2009 at 12:25 pm.
<?php $apikey = 'your api key here'; $photoid = isset($_GET['photoid']) ? $_GET['photoid'] : '2486052207'; $url = 'http://api.flickr.com/services/rest/?method=flickr.photos.comments.getList&api_key=' . $apikey . '&photo_id=' . $photoid; $xml = file_get_contents($url); $x = new SimpleXMLElement($xml); foreach($x->comments->comment as $comment) { $url = 'http://api.flickr.com/services/rest/?method=flickr.people.getInfo&api_key=' . $apikey . '&user_id=' . ((string)$comment['author']); $xtext = file_get_contents($url); $user = new SimpleXMLElement($xtext); $avatar = 'http://farm' . $user->person['iconfarm'] . '.static.flickr.com/' . $user->person['iconserver'] . '/buddyicons/' . $comment['author'] . '.jpg'; echo '<div style="clear:left;"><img src="'.$avatar.'" style="float:left;">' . $comment . '</div>'; } ?>
| Referring Domain | Hits |
|---|---|
| Unknown Referer | 128 |
| pastoid.com | 10 |
| search.live.com | 3 |
| drunkenmonkey.org | 1 |
Tip: Use Pastoid to shorten URLs with this bookmarklet: Pastoid This