# in minutes (only rss 2.0) $cache = '60'; $rssfile = new RSSBuilder($encoding, $about, $title, $description, $image_link, $category, $cache); # person, an organization, or a service $publisher = ''; # person, an organization, or a service $creator = ''; $date = (string) date('r'); $language = lang_get('phpmailer_language'); $rights = ''; # spatial location , temporal period or jurisdiction $coverage = (string) ''; # person, an organization, or a service $contributor = (string) ''; $rssfile->setPublisher($publisher); $rssfile->setCreator($creator); $rssfile->setRights($rights); $rssfile->setCoverage($coverage); $rssfile->setContributor($contributor); # hourly / daily / weekly / ... $period = (string) 'daily'; # every X hours/days/... $frequency = (int) 1; $base = (string) date('Y-m-d\\TH:i:sO'); # add missing : in the O part of the date. PHP 5 supports a 'c' format which will output the format # exactly as we want it. # // 2002-10-02T10:00:00-0500 -> // 2002-10-02T10:00:00-05:00 $base = substr($base, 0, 22) . ':' . substr($base, -2); $rssfile->addSYdata($period, $frequency, $base); $news_rows = news_get_limited_rows(0, $f_project_id); # Loop through results