display RSS feed content on website script

by 5 replies
8
Display RSS feed content on website script

What are the options ?
Are all scripts very similar in function and features or very differently ?

Do we need to look for any particular features when comparing which one to use ? How to choose ?

Thanks
#main internet marketing discussion forum #content #display #feed #rss #script #website
  • It sounds like you want to display an RSS feed within your HTML website. The easiest/best way to do this is to use RSS2HTML a free PHP script. This means that you can retain the complete control of the HTML layout (using templates) and make it match your existing design. Additionally using PHP rather than JavaScript will mean that search engine spiders can "spider" the contents of the RSS feeds.

    Additional details and a free rss2html download is available at: RSS2HTML free PHP script for displaying RSS feeds

    Additional information and other options for displaying RSS feeds can be found at: Displaying RSS Feeds
    • [ 1 ] Thanks
    • [1] reply
    • There are a lot of different scripts that fill different needs.

      I can't help but plug my own script here which is a very unique way of aggregating multiple RSS feeds on one site - please see the signature if you're interested in seeing the demo.

      There's other options too, such as Wordpress Auto Blogs. These are a really easy way of displaying content from an RSS feed, but the value to the actual publisher of the content is questionable.

      If you're a programmer or even have a basic knowledge, I'd go with the previous rss2html link, this would allow you to easily embed the output into your current project
      • [ 1 ] Thanks
      • [1] reply
  • please help me .....
  • Here is my own script to display RSS feed on Web page (perhaps the smallest one in the world):

    <?php
    // Put your RSS feed URL here. E.g.:
    $feed = "http://habrahabr.ru/rss/best/";
    // Assign the local path to your optional cache file (e.g. cache.txt) which must be writable by the script.
    $filename = "cache.txt";
    // The default cache refresh time is set to one hour (60 * 60), but you can change it to any other value.
    if (file_exists($filename) && filesize($filename) && (time() - filectime($filename)) < 60 * 60) {
    $content = file_get_contents($filename);
    } else {
    $xml_parser = xml_parser_create();
    xml_parse_into_struct($xml_parser, file_get_contents($feed), $vals, $index);
    // The maximum number of displayed items is limited with 5. Change it to whatever you want.
    $cnt = min(5, count($index["TITLE"]), count($index["DESCRIPTION"]));
    $content = "";
    for ($i = 1; $i < $cnt; $i++) {
    $content .= "<h3>" . html_entity_decode($vals[$index["TITLE"][$i]]["value"], ENT_QUOTES) . "</h3>\n";
    $content .= "<p>" . html_entity_decode($vals[$index["DESCRIPTION"][$i]]["value"], ENT_QUOTES) . "</p>\n";
    }
    xml_parser_free($xml_parser);
    file_put_contents($filename, $content, LOCK_EX);
    }
    echo $content;
    ?>
    • [ 1 ] Thanks
  • [DELETED]

Next Topics on Trending Feed