saksağan rss ve süt yem url hatırlıyorum

0 Cevap php

So, I'm working for the first time with embedding a RSS (or atom, but right now I'm trying to stick to rss) feed from my Remember the Milk account in my own website. (Eventually, there will be an at a glance dashboard style thing.) Now, like I said, this is pretty much my first time actually working with rss feeds. I've been using Magpie RSS, and whenever I give it a url to fetch, it errors out saying:

Warning: MagpieRSS: fetch_rss called without a url in /magpierss/rss_fetch.inc on line 238

Warning: Invalid argument supplied for foreach() in dash.php on line 53

Yani, bu gelen benim URL yanlış olduğu sonucuna varıldı. Ancak, bu RTM tarafından sağlanan RSS feed url ve hangi benim google okuyucuya gayet güzel çalışıyor. Peki, ne kadar vidalama ben?

Edit: The php I'm using to call rss_fetch:

<?php
require_once("php/magpierss/rss_fetch.inc");
$url = $_GET['http://www.rememberthemilk.com/rss/test.reeher/15418678/?tok=eJwNzccJw0AQAMCKzmwO5VzYxQa  ZPWP9R*Y8JoFVAph3Zs26GIXmEgHkp3VUNsqZ1aK436o0Dm4JykGjLt*9*uqetc1vp-    fPVAFwzwGpmLPbHYrPGws60j32koOa3vwbiKxgvVs9Ug-gVBuNpdk-AEX*ysp'];
$rss= fetch_rss( $url );
echo $rss->channel['title'] . "<p>";
echo "<ul>";
foreach ($rss->items as $item) {
    $href = $item['link'];
    $title = $item['title'];
    echo "<li><a href=$href>$title</a></li";
}
echo "</ul>";
?>

Bu hemen hemen Saksağan'da gelen örnek php bulunuyor.

0 Cevap