RSS Forums RSS

Thumbnail through PHP RSS parser

Please support our RSS, Web Services and SOAP advertiser: Programming Forums
Reply
Posts: 7
Reputation: simps0n is an unknown quantity at this point 
Solved Threads: 0
simps0n simps0n is offline Offline
Newbie Poster

Thumbnail through PHP RSS parser

  #1  
Jul 21st, 2008
Hello, folks!

I'm trying to parse RSS feed and display it on my own page.
MagpieRSS looks good enough for me, but I have a little problem.

I want to display not only the title and description of each article, but the thumbnail as well.
For example, I tried to do that with this feed. Everything is alright with the title and the description, but I can't do the thumbnail thing. What I've tried is the following:
foreach ($rss->items as $item ) {
	$title = $item[title];
	$url   = $item[link];
	$description = $item[description];
	$thumbnail = $item['media:thumbnail'];
	echo "<a href=$url>$title</a></li><br>";
	echo $description;
	echo "<img src=$thumbnail>";
}
As I said before, the other things are fine, but it's not showing the thumbnail.

Thanks in advance for any help!
AddThis Social Bookmark Button
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.



Other Threads in the RSS, Web Services and SOAP Forum
Views: 1642 | Replies: 0 | Currently Viewing: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 3:16 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC