Fehler beim Laden des Feeds:
" . htmlspecialchars($feed_url) . "";
continue;
}
$output .= '
' . htmlspecialchars($xml->channel->title) . '
';
//$output .= '
Feed öffnen
';
// Nur den neuesten Eintrag anzeigen
$entry = $xml->channel->item[0];
$date = date('d.m.Y', strtotime($entry->pubDate));
$title = htmlspecialchars($entry->title);
$description = html_entity_decode($entry->description);
if (isset($entry->encoded)) {
$description .= '
' . html_entity_decode($entry->encoded);
} else if (isset($entry->content)) {
$description .= '
' . html_entity_decode($entry->content);
}
$output .= '
'. $title .' ('.$date.')
';
$output .= '
'. $description .'
';
}
echo $output;
//file_put_contents($feedcache_path, $output);
} else {
echo file_get_contents($feedcache_path);
}
?>