Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 164793
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T11:48:25+00:00 2026-05-11T11:48:25+00:00

I have successfully created a simple RSS feed, but entries keep coming back as

  • 0

I have successfully created a simple RSS feed, but entries keep coming back as unread and updated, and entries deleted from the client reappear everytime I ask mail to update the feed.

What am I doing wrong?

I use this simple function to create an rss feed:

public static function getFeed($db) {     $title = 'Latest feeds';     $feedUri = '/rss/';      //link from which feed is available     $link = 'http://' . $_SERVER['HTTP_HOST'] . $feedUri;      //create array according to structure defined in Zend_Feed documentation     $feedArr = array('title' => $title,                      'link'  => $link,                      'description' => $title,                      'language' => 'en-us',                      'charset' => 'utf-8',                    //'published' => 1237281011,                      'generator' => 'Zend Framework Zend_Feed',                      'entries' => array()               );     $itemObjs = array();     $select = $db->select('id')->from('things')                                ->order('createddate desc')                                ->limit(10);     $results = $db->fetchAll($select->__toString());     $count = count($results);     for($i=0;$i<$count;$i++) {         $itemObjs[] = SiteUtil::getItemObjectInstance($db, $results[$i]['id']);     }     $count = count($itemObjs);     for($i=0;$i<$count;$i++) {         $obj = & $itemObjs[$i];         $feedArr['entries'][] = array('title' => $obj->getSummary(),                                       'link'    => 'http://' . $_SERVER['HTTP_HOST'] . $obj->getDetailUri(),                                       'description' => $obj->description,                                       'publishdate' => $obj->publishedDate,                                       'guid' => 'http://' . $_SERVER['HTTP_HOST'] . $obj->getDetailUri()                                       );     }     $feed = Zend_Feed::importArray($feedArr, 'rss');     return $feed; } 

The action in the controller class is:

public function rssAction() {     $feed = FeedUtil::getFeed($this->db);     $feed->send(); } 

So to access the feed, I point the client to: http://mysite.com/rss

I am using mac mail’s rss client to test. The feed downloads just fine, showing all 5 items I have in the database for testing purposes. The problems are as follows:

1) If I mark one or more items as ‘read’ and then tell mail to update the feed, it pulls all items again as if I never downloaded them in the first place.

2) If I delete one or more items they come back again, unread, again as if it were the first time I subscribed to the feed.

3) Feeds are always marked as updated. Is that supposed to be the case?

Is is something to do with the parameters I’m setting, am I omitting something, or could the solution be something more subtle like setting HTTP content headers (e.g. ‘304 Not Modified’)?

My understanding of rss is that once an item has been marked as read or deleted from the client, it should never come back, which is the behaviour I’m after.

Just to note, the ‘link’ and ‘guid’ parameters are always unique, and I have tried experimenting with ‘published’ and ‘publishdate’ (both optional) attributes only get the same result. The above code is a simplified version of what I have, showing only the relevant bits, and finally, yes, I have read the rss specification.

Thanks in advance for any help offered here, I’ll be happy to clarify any point.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T11:48:25+00:00Added an answer on May 11, 2026 at 11:48 am

    According to the Zend Framework Doc, you must use the lastUpdate parameter to set the last modification date of an entry.

     'entries'     => array(                          array(                                [...]                                'lastUpdate'   => 'timestamp of the publication date', // optional                                [...] 

    So published for the feed, and lastUpdate for the entries.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 91k
  • Answers 91k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer IE will lose events depending on how you are adding… May 11, 2026 at 6:14 pm
  • Editorial Team
    Editorial Team added an answer Yes, you can call f1 from f2 in ColdFusion if… May 11, 2026 at 6:14 pm
  • Editorial Team
    Editorial Team added an answer I believe that with good software designers (and in my… May 11, 2026 at 6:14 pm

Related Questions

I have had major problems with getting UserControls to work in XAML - I
(Edited to add an example and hopefully make it a bit clearer) I'm mainly
I'm trying to wrap my head around reflection, so I decided to add plugin
I am creating a simple C++ DLL project using Visual Studio 2008 Express Edition.

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.