Location: PHPKode > projects > Micro Bucky > micro-bucky/feed/index.php
<?php
//-------------------------------------------------------------------------------------
//	Micro Bucky
//	Mark Moore
//	license: MIT License
//	website: http://buckycomputing.net/
//
//	feed/index.php
//-------------------------------------------------------------------------------------

require_once('../inc/includes.php');
header('Content-type: text/xml');
echo '<?xml version="1.0" encoding="UTF-8"?>';
?>
<rss version="2.0">
  <channel>
    <title><?php _e('Micro Bucky Posts'); ?></title>
    <link><?php echo 'http://buckycomputng.net/micro/' ?></link>
    <description><?php _e('Micro Bucky Posts'); ?></description>
    <ttl>5</ttl>

<?php
    $storage = new Comments();
    foreach ($storage->getHam(10) as $comment) :
?>
    <item>
      <title>~ <?php echo $comment['name'], ' ', __('says...'); ?></title>
      <description><?php echo $comment['comment']; ?></description>
      <pubDate><?php echo date(DATE_RSS, (int) $comment['date']); ?><br /></pubDate>
    </item>
<?php
    endforeach;
?>
  </channel>
</rss>
Return current item: Micro Bucky