What I think is happening is that when all feeds are combined, the final output still retains all opening and closing <rss> and <channel> tags. So how would I go about omitting these tags dynamically so that my php would look something like
Code:
<?php
echo "<rss version='2.0' xmlns:atom='http://www.w3.org/2005/Atom'>";
echo "<channel>";
$handle1 = fopen("rss_news.xml", "r");
$contents = stream_get_contents($handle1);
echo $contents;
fclose($handle1);
$handle2 = fopen("rss_articles.xml", "r");
$contents1 = stream_get_contents($handle2);
echo $contents1;
fclose($handle2);
$handle3 = fopen("rss_creativeart.xml", "r");
$contents2 = stream_get_contents($handle3);
echo $contents2;
fclose($handle3);
echo "</channel>";
echo "</rss>";
?>
Bookmarks