| | |
How exactly do you implement your RSS to your own site?
Please support our RSS, Web Services and SOAP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
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]
![]() |
Similar Threads
- php/mysql dynamic multi-level menu problem (MySQL)
- Rss (IT Professionals' 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
| Thread Tools | Search this Thread |
.htaccess 301 accept access alltop api authentication binarysecuritytoken blog card collaboration credit data development ebay email evernote flash google government highrise htaccess intel internet legal live netbeans patent paypal php podcast proxy redirect rss rssfeeds searchmonkey server service soap software swappingxmlfromflash swappingxmlnodes url web webservices webservicesecurity wiki wikipedia xerces xml xslt y!os yahoo ydn







