SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Zealot
    Join Date
    Feb 2001
    Posts
    137
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need a simple way to display this RSS feed on html page

    Here's the feed http://www.nws.noaa.gov/alerts/mi.rss I want to display on a html page. Seems like it should be simple but I haven't found a nice solution yet. I tried Carp without any luck. Can anybody help?

    You can see the Carp code I inserted into my html page at http://www.michigan-sportsman.com/weather.htm

  2. #2
    SitePoint Addict
    Join Date
    May 2004
    Location
    .
    Posts
    227
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You page is not being interpreted by PHP. You may either rename it to weather.php or change your PHP settings to interpret .htm and .html files.

    I hope this helps.
    Ilya Devyatovsky
    ThinkHost, Inc.
    Wind/solar powered web hosting - 6 months free!

  3. #3
    SitePoint Zealot
    Join Date
    Feb 2001
    Posts
    137
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is there any way I can make just the small php produced portion of this page a seperate file and then include that into my larger original html file?

  4. #4
    SitePoint Addict
    Join Date
    May 2004
    Location
    .
    Posts
    227
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you have SSI enabled with your Apache, you can insert the following to your HTML file:

    HTML Code:
    <!--#include virtual="rss_script_name.php" -->
    Then you will need to either set up the Apache to parse for SSI all the .htm/.html files or just rename the file with the .shtml extention.
    Ilya Devyatovsky
    ThinkHost, Inc.
    Wind/solar powered web hosting - 6 months free!

  5. #5
    SitePoint Addict
    Join Date
    May 2004
    Location
    .
    Posts
    227
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    BTW, here is a link to Apache's tutorial on SSI:
    http://httpd.apache.org/docs/howto/ssi.html
    Ilya Devyatovsky
    ThinkHost, Inc.
    Wind/solar powered web hosting - 6 months free!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •