PDA

View Full Version : RSS Feed - update when new article posted


fishnyc22
09-17-2007, 06:26 AM
Hey everyone. I have an RSS feed on my site for all my users. If I subscribe to one of my users feeds, I don't get notified that there is an update to that feed (like a number next to the feed in Safari).

What am I missing to make that happen. I assume its a date somewhere, but <lastBuildDate></lastBuildDate> didnt seem to do the trick.

Any help is appreciated.

Fish
><>

Alex Vincent
09-17-2007, 04:44 PM
http://www.codingforums.com/showthread.php?t=101113

fishnyc22
09-17-2007, 05:11 PM
Here is an example of my code: The list of items is sorted descending from mySQL. I use the first record (the most recent post) as the <lastBuildDate>. I thought that would trigger the notice that there is a new post in the feed.

<?xml version="1.0"?>
<rss version="2.0">
<channel>
<title>TEST FEED</title>
<link>http://www.mydomain.com/folder</link>
<description>RSS Feed</description>
<lastBuildDate>Mon, 17 Sep 2007 11:03:21 -0400</lastBuildDate>
<language>en-us</language>
<ttl>60</ttl>

<item>
<title>Post title goes here</title>
<link>http://www.mydomain.com/folder</link>
<guid>http://www.mydomain.com/folder/index.php?a=1</guid>
<pubDate>Mon, 17 Sep 2007 11:03:21 -0400</pubDate>
<description><![CDATA[this is my test message]]></description>
</item>

</channel>
</rss>

fishnyc22
09-19-2007, 04:16 PM
Anyone?

Alex Vincent
09-19-2007, 05:49 PM
It might be that no one in this forum has an answer.

How are you generating the RSS?

fishnyc22
09-19-2007, 08:40 PM
I'm generating it in a PHP file. The top of the file contains:
<?php
header('Content-Type: text/xml');
echo "<?xml version=\"1.0\"?>\n";
echo "<rss version=\"2.0\">\n";
?>

Would using PHP to build it create a problem with notifications of new articles.

rnd me
09-21-2007, 03:52 PM
Hey everyone. I have an RSS feed on my site for all my users. If I subscribe to one of my users feeds, I don't get notified that there is an update to that feed (like a number next to the feed in Safari).

What am I missing to make that happen. I assume its a date somewhere, but <lastBuildDate></lastBuildDate> didnt seem to do the trick.

Any help is appreciated.

Fish
><>

what do you mean by 'get notified'?

it is up to your rss viewer to periodically check for updates, the feed itself cannot notify you, it is just a text file...


what reader are you using?

fishnyc22
09-21-2007, 05:21 PM
thanks, I understand that, but when I add a feed to my Safari RSS list, with any other article I get # next the feed title telling me how many new articles there are, but for some reason for my feed it doesnt work.

I was asking if <lastBuildDate> determines that or if it's something else I'm missing. And if something special has to be done for a PHP built feed.

Thanks for the reply.