•
•
•
•
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 360,990 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 2,644 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:
Views: 2669 | Replies: 1
![]() |
•
•
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 10,857
Reputation:
Rep Power: 32
Solved Threads: 106
Let me make sure I understand your question corectly. You have an RSS feed and you want to syndicate this feed on your PHP-driven site?
What you will need is a PHP-based RSS parser. A relaly good, and really powerful one, that I love is called MagpieRSS - http://magpierss.sourceforge.net
It has lots of options but don't let that overwhelm you. Read the FAQ and you will see that it only takes a couple of lines and for you to upload the magpierss folder.
Here is a very basic example:
[php]
require_once('magpierss/rss_fetch.inc');
$url = "path/to/rss/feed.rss";
$rss = fetch_rss($url);
echo "<ul>";
foreach ($rss->items AS $item)
{
$title = $item['title'];
$link = $item['link'];
echo "<li><a href=\"$link\">$title</a></li>";
}
echo "</ul>";
?>
[/php]
What you will need is a PHP-based RSS parser. A relaly good, and really powerful one, that I love is called MagpieRSS - http://magpierss.sourceforge.net
It has lots of options but don't let that overwhelm you. Read the FAQ and you will see that it only takes a couple of lines and for you to upload the magpierss folder.
Here is a very basic example:
[php]
require_once('magpierss/rss_fetch.inc');
$url = "path/to/rss/feed.rss";
$rss = fetch_rss($url);
echo "<ul>";
foreach ($rss->items AS $item)
{
$title = $item['title'];
$link = $item['link'];
echo "<li><a href=\"$link\">$title</a></li>";
}
echo "</ul>";
?>
[/php]
Dani the Computer Science Gal
Do you run a computer-related website? Feature it in our niche link directory!
Do you run a computer-related website? Feature it in our niche link directory!
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb RSS, Web Services and SOAP Marketplace
- php/mysql dynamic multi-level menu problem (MySQL)
- Rss (Web Developers' Lounge)
- Paging in xml (ASP.NET)
- Help With a PHP RSS Parser (PHP)
- Memberships / Unique Visitors Ratio??? (Growing an Online Community)
- Getting out of the Sandbox (Search Engine Optimization)
- Hope someone can help me :) (HTML and CSS)
- Displaying RSS feed on web site using rss2html.php (PHP)
Other Threads in the RSS, Web Services and SOAP Forum
- Previous Thread: XML "invention" Suit Launches - Who Does it Legally belong to?
- Next Thread: Urgent help



Linear Mode