how can i display the RSS of other people's website to my website, i mean display all the news... em... display from xml to html...
any script that doen that, or any idea to write that script?
thank you..
Display RSS(XML) in HTML format with PHP...
Moderator: General Moderators
Check out: http://www.sitepoint.com/article/560
-
yelvington
- Forum Newbie
- Posts: 1
- Joined: Sat Aug 14, 2004 1:22 pm
google php pear rss
to find the appropriate PEAR package.
Or upgrade to PHP5, where you can do this with just a few lines of code.
For an RSS 2.0 feed:
to find the appropriate PEAR package.
Or upgrade to PHP5, where you can do this with just a few lines of code.
For an RSS 2.0 feed:
Code: Select all
<?php
$xml = simplexml_load_file('http://onlineathens.com/RSS/news.xml');
foreach($xml->channel->item as $item)
echo "
<li><a href="$item->link">$item->title</a> $item->pubDate</li>\r\n";
?>