magpierss

<?
  require_once('inc/magpierss/rss_fetch.inc');
  $url = 'http://brianwiese.net/blog/feed/';
  $rss = fetch_rss($url);
  /* echo "<div align="left"><h3>Lately, on: ", $rss->channel['title'], "</h3><br></div> "; */
  $desc = $rss->channel['description'];
  echo "<h2>Lately on the <a href='/blog/' title='$desc'>blog</a>...</h2><br/> ";

  foreach ($rss->items as $item ) {
  $ititle = $item[title];
  $iurl   = $item[link];
  $idate  = $item[pubdate];
  echo "<a href=$iurl title='$idate'>$ititle</a><br/>";
  }
?>
  • thanks Brian, that helps a lot! Mike
 
php/magpierss.txt · Last modified: 2006/05/26 17:48 by 205.155.71.178
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki