$rss = simplexml_load_file('/var/www/vhosts/web209.web207.dogado.net/html/filmfacts/blog/atom.xml');
$x=0;
while ($rss->entry[$x] and $x<10) {
$title=utf8_decode($rss->entry[$x]->title);
$content=strip_tags(substr(utf8_decode($rss->entry[$x]->content),0,200));
foreach ($rss->entry[$x]->link as $link) {
if ($link['rel'] == 'alternate') {
$href = utf8_decode($link['href']);
}
}
echo '
'.$title.' | ';
$x++;
}
?>