Welcome to WebmasterWorld Guest from 54.146.248.111

Forum Moderators: bill & werty

Message Too Old, No Replies

Magpie problems

Not showing anything

     

madmatt69

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

WebmasterWorld Senior Member 10+ Year Member



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

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

10+ Year Member



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

 

Featured Threads

Hot Threads This Week

Hot Threads This Month