help with simple RSS feed - Printable Version
-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: help with simple RSS feed (/showthread.php?tid=55033)
help with simple RSS feed by MC Inferno on 01-18-2006 at 03:28 AM
im setting up a RSS feed for a podcast, its my first time, so its not spot on though.
Right my RSS text file is in the ftp folder public_html on my website www.merseystreetzart.co.uk) and the show is called 15th jan.mp3 and is also in the public_html folder.
the validator keeps tellin me ive fucked up the dates, and i cant seem to get em spot on. im not arsed wether its right date or not, i jus ant it so i can upload my new show each week, and it'll automatically do it (i think if i rename the new mp3 file as 15th jan i'll be sound) anyways, can somebody sort the date's out for me, and also chek to see if the links are right please?
quote: <?xml version="1.0"?>
<rss version="2.0">
<channel>
<title>Street Soundz - MSA Radio</title>
<link>http://www.merseystreetzart.co.uk/msaradio.rss.txt</link>
<description>Liverpool Hip Hop</description>
<language>en-us</language>
<copyright>2006</copyright>
<lastBuildDate>Sat, Jan 18 2006 18:00:00 -0500</lastBuildDate>
<webMaster>i_cant_spell_phuck@hotmail.co.uk</webMaster>
<ttl>1</ttl>
<item>
<title>This Week On Street Soundz</title>
<description>www.merseystreetart.co.uk Liverpool Hip Hop is set to explode on Street Soundz, hosted by MC Inferno</description>
<pubDate>Jan 18 2006 04:36:40 -0500</pubDate>
<enclosure url="http://www.merseystreetzart.co.uk/15th jan.mp3" length="39454093" type="audio/mpeg" />
</item>
</channel>
</rss>
thanx. and be quick, i wanna get this dun tonight, and ive been working for an hour and a half now haha lol
RE: help with simple RSS feed by ShawnZ on 01-18-2006 at 03:31 AM
Sat, 18 Jan should work.
RE: help with simple RSS feed by MC Inferno on 01-18-2006 at 03:34 AM
still doesnt like it, says its not a RFC 822 date
(btw. are the links correct?)
RE: help with simple RSS feed by -dt- on 01-18-2006 at 07:57 AM
<pubDate>Jan 18 2006 04:36:40 -0500</pubDate>
isnt a RFC 822 date.
to create one with php you could use
strftime('%a, %d %b %Y %H:%M:%S -0500',time());
basicly to make your pubdate work you need to swap the date (18) to before the month
<pubDate>Wed, 18 Jan 2006 04:36:40 -0500</pubDate>
should work.
read the rfc next time
http://www.faqs.org/rfcs/rfc822.html
RE: help with simple RSS feed by rav0 on 01-18-2006 at 10:40 AM
I'm not sure of the exact problem you are having, but I have a few suggestions.
First off, you should serve the feed as RSS, not text, always.
The URI of the show contains a space, this should be represented as %20, (eg http://www.merseystreetzart.co.uk/15th%20jan.mp3)
The date; doesn't exist. January 18 2006 isn't a Saturday, it's a wednesday.
Hopefully this will help.
|