rss feed
Posted: Wed Jul 13, 2011 6:17 pm
I have followed your steps for the rss feed, and it seems to be working fine in IE, FF and safari, but in Chrome its only showing raw xml.
You can see it here www.tapt-in.net/blog/rss.php
Here is the code
You can see it here www.tapt-in.net/blog/rss.php
Here is the code
<?php include("../config_file.php"); header('Content-Type: application/rss+xml'); $posts = b_get_posts(); echo '<?xml version="1.0" encoding="UTF-8" ?>', "\n"; echo '<rss version="2.0">', "\n"; echo ' <channel>', "\n"; echo ' <title>Tap\'t In Blog</title>', "\n"; echo ' <description>Tap\'t In PBBG social network Blog</description>', "\n"; echo ' <link>http://www.tapt-in.net/blog/</link>', "\n"; echo ' <lastBuildDate>',date("r"),'</lastBuildDate>', "\n"; foreach ($posts as $post) { echo ' <item>', "\n"; echo ' <title>',$post['title'],'</title>', "\n"; echo ' <description>',$post['preview'],'</description>', "\n"; echo ' <link>http://www.tapt-in.net/blog/read.php?id=',$post['id'],'</link>', "\n"; echo ' <pubDate>',date("r", $post['timestamp']),'</pubDate>', "\n"; echo ' </item>', "\n"; } echo ' </channel>', "\n"; echo '</rss>'; ?>