homepage Welcome to WebmasterWorld Guest from 23.23.22.200
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld

Home / Forums Index / Code, Content, and Presentation / RSS, ATOM, and Related Technologies
Forum Library, Charter, Moderators: bill & werty

RSS, ATOM, and Related Technologies Forum

    
Magpie problems
Not showing anything
madmatt69




msg:1541484
 4:43 am on May 17, 2005 (gmt 0)

Magpie seems like a cool program - except for the fact it doesn't tell you anywhere where you should define the URL of the RSS feed!

I've tried adding $url = 'www.example.com/example.xml" to the top of my php page and that didn't help. I also tried to add that to the rss_fetch.inc file with no success either.

Can anyone tell me where to define the URL of the feed?

 

mboydnv




msg:1541485
 11:26 pm on May 23, 2005 (gmt 0)

leave the fecth.inc file alone.

On the file that you want your feed to be on simply paste in this:

<?php
require_once 'rss_fetch.inc';
$url = 'http://search.msn.com/results.aspx?q=grand+canyon&format=rss&FORM=ZZRE';
$rss = fetch_rss($url);
foreach ($rss->items as $item ) {
$title = $item[title];
$url = $item[link];
$desc = $item[description];
echo "<a href=$url>$title</a><br>$desc<P>\n";
}

?>

Regards,

Michael

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / RSS, ATOM, and Related Technologies
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved