•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the RSS, Web Services and SOAP section within the Web Development category of DaniWeb, a massive community of 428,224 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,256 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our RSS, Web Services and SOAP advertiser: Programming Forums
Views: 943 | Replies: 0
![]() |
•
•
Join Date: Dec 2007
Posts: 7
Reputation:
Rep Power: 0
Solved Threads: 0
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: As I said before, the other things are fine, but it's not showing the thumbnail.
Thanks in advance for any help!
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>";
}Thanks in advance for any help!
![]() |
•
•
•
•
•
•
•
•
DaniWeb RSS, Web Services and SOAP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Previous Thread: Client side code for a Web Method Returning a complex Custom data type.
- Next Thread: formmail.pl


Linear Mode