i make a RSS reader using Better php TUT..it works well..but if i add my feed url...it shows...
Fatal error: Call to a member function attributes() on a non-object in C:\xampp\htdocs\rss\core\inc\rssr.inc.php on line 14
i want to fix that or make a myown blogger reader...
as a example can anyone tell me how to make a blog reader like this...this is not in english..but in our countrey language(sri lanka) + english...
Please help me this is emergency...
this is the my error page PHP codes...
[syntax=php]<?php
function fetch_news () {
$data = file_get_contents('http://feeds.feedburner.com/CheaTax');
$data = simplexml_load_string($data);
$articles = array();
foreach ($data->channel->item as $item) {
$media = $item->children('http://search.yahoo.com/mrss/');
$image = array();
foreach ($media->thumbnail[0]->attributes() as $key => $value) {
$image[$key] = (string)$value;
}
$articles[] = array(
'title' => (string)$item->title,
'description' => (string)$item->description,
'link' => (string)$item->link,
'date' => (string)$item->pubDate,
'image' => $image,
);
}
return $articles;
}
?>[/syntax]
Thanx for All..help me dears.....