Integrating RSS Feed into Page

Discussion in 'Web Design and Development' started by dpaanlka, Dec 15, 2007.

  1. dpaanlka macrumors 601

    dpaanlka

    Joined:
    Nov 16, 2004
    Location:
    Illinois
    #1
    I cannot for the life of me figure out how to get titles and links from my RSS feed located here:

    feed://forums.info-mac.org/rss.php

    To integrate into my home page. None of the free RSS to HTML services I've found seem to work and neither do the few PHP scripts I tried.

    Does anyone have experience with this?
     
  2. Aranince macrumors 65816

    Joined:
    Apr 18, 2007
    Location:
    California
  3. psv macrumors newbie

    Joined:
    Dec 16, 2007
    #3
    I use igoogle... the personalized google page and your link worked. I'm also on Firefox... which is great for these things...

    :D
     
  4. Aranince macrumors 65816

    Joined:
    Apr 18, 2007
    Location:
    California
    #4
    I suggest using Google Reader. Its an exelent RSS reader.

    www.google.com/reader
     
  5. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #5
    The question wasn't about reading RSS, but presenting the RSS for others to view on a page. The advice about trying http may be able to help. I use XSLT and PHP using DOM to deal with XML files, either of which could help out here.
     
  6. dpaanlka thread starter macrumors 601

    dpaanlka

    Joined:
    Nov 16, 2004
    Location:
    Illinois
    #6
    I eventually figured it out, actually. I ended up using RSS2HTML php script, and modifying it to handle my entire home page.

    http://www.info-mac.org

    The recent activity box is an RSS feed.
     
  7. Chillijam macrumors member

    Chillijam

    Joined:
    Oct 26, 2007
    Location:
    UK, but maybe not for much longer
    #7
    I have done it in the past, and had a reasonable degree of success with it. I used one of the PEAR modules (RSS or just plain ole XML, but can't remember which) to read the stream. The format of an RSS feed file is quite simple, and you will probably only want to pull out 3 or 4 fields from each record. Shouldn't be too hard.

    Possibly the best tip I can give you is this. Don't rely on the 3rd party file (the RSS itself) being available live. Use some kind to cron timed script that will download the feed file to your local machine (probably the server) and process the file from there. You shouldn't need to do it more than once per minute. It also has the effect of reducing the bandwidth usage of your site, and the feed owner's. The feed I took was only updated once every 7 minutes or something like that, so I copied it down once every 7 minutes. Of course, there was a potential for my site to be up to 14 minutes out of date, but the nature of the data was not time sensitive.
     

Share This Page