Jump to content

Magpie PHP Flickr


ldoozer

Recommended Posts

I am trying to pull in the latest Flickr images from my account and using magpierss to parse the feed.

I am successfully creating a ul list of the images using the code below, but I cannot see how to size the images, can anyone help.

 

The $item['description']; line produces:

 

  • Username posted a photo:
    FlickrImage

 

 

<? 
require_once 'magpierss/rss_fetch.inc';
$url = '';
$rss = fetch_rss( $url );

echo '<ul>';
foreach ($rss->items as $item) {
$href = $item['link'];
$title = $item['title'];
$img = $item['description'];
echo "<li><a href=$href>" . $img . "</a></li>";
}
echo "</ul>";
?>

Link to comment
https://forums.phpfreaks.com/topic/212902-magpie-php-flickr/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.