Thread: [Magpierss-general] Almost there
Status: Beta
Brought to you by:
kellan
From: Jerry C. <je...@br...> - 2012-02-19 17:34:09
|
Hello, I've been searching for about a week to figure out how to create an RSS feed suitable for twitterfeed (and other services) out of my magpieRSS page http://thecompleterecoveryprogram.com/video-library/add1 and I was delighted when I found a post http://www.hiash.com/blogger.php For some reason it just wont work. My question is what have I done wrong? Is it the "$rss=fetch_rss()" line? If you are willing to assist I would greatly appreciate it. <?php define('MAGPIE_DIR', 'video-library/add1/magpie/'); require_once(MAGPIE_DIR.'rss_fetch.inc'); $num_items = 5; $rss = fetch_rss( ' http://www.thecompleterecoveryprogram.com/video-library/add1/' ); $items = array_slice($rss->items, 0, $num_items); //display latest blog content: echo "<ul><em>Latest Video Updates:</em>\n"; foreach ($items as $item) { $href = $item['link']; $title = $item['title']; $created = $item['created']; echo "<li><a href=$href>$title</a> $created</li>\n"; } echo "</ul>"; ?> |