PHP and RSS

Discussion in 'XML & RSS' started by coalduststar, Nov 14, 2006.

  1. #1
    Hi- i'm creating an RSS feed for a news/events calendar in which the news and events are generated on the fly using php.

    I can't get my RSS to recognise the links to the dates on the calendars that are generated:

    http://cmr.ulster.ac.uk/day.php?m=11&y=2006&d=15

    please help!!

    <rss version="2.0">
    <channel>
    <title>CMR News and Events</title>
    <link>http://cmr.ulster.ac.uk/newsevents.php</link>
    <description>Keep up to date with events, conferences, lectures hosted and participated in by the researchers in the Centre ofr Media Research.</description>
    <language>en-uk</language>
    <webMaster>rowan@coalduststar.com (rOwan mOrrey)</webMaster>
    <copyright>Copyright 2006 Centre for Media Research</copyright>
    <image><url>http://cmr.ulster.ac.uk/images/podcast.jpg</url><title>CMR events</title><link>http://cmr.ulster.ac.uk/newsevents.php</link></image>
    <category>Education</category>
    
    
    
    <item>
    <title>Guest Speaker- 'Red Riding Hood, Rape Narrative and Feminist Film Practice as Research.'</title>
    <link>http://cmr.ulster.ac.uk/day.php</link>
    <guid isPermaLink="true">http://cmr.ulster.ac.uk/day.php?m=11&y=2006&d=15</guid>
    <description>Dr. Charlotte Crofts, Department of Arts, Media and English, London South Bank University and HEFCE Promising Research Fellow, University of Bristol (Jul-Dec 2006) discusses her short film, Bluebell. 15 Nov(see calendar dates)</description>
    <author>jpr.morrey@ulster.ac.uk (rOwan mOrrey)</author>
    <category>Education</category>
    </item>
    
    </channel>
    </rss>
    Code (markup):
     
    coalduststar, Nov 14, 2006 IP
  2. thedeak

    thedeak Guest

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    hey coalduststar, i'm no expert, but i did notice your rss document was not valid. In order to make it valid the ampersands in the URL should appear like this
    &amp;
    
    <guid isPermaLink="true">http://cmr.ulster.ac.uk/day.php?m=11&amp;y=2006&amp;d=15</guid>
    
    Code (markup):
    I hope this helps.

    Regards,

    Deak
     
    thedeak, Nov 15, 2006 IP
  3. coalduststar

    coalduststar Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    sorry for the late reply- you're a genius BTW cos that fixed the lot! cheers!
     
    coalduststar, Dec 12, 2006 IP