View Full Version : PHP -> RSS Headache [FIXED]

08-12-2007, 03:48 AM
No matter what I do I cannot get any RSS code to come up as an RSS feed in IE7 when it is generated by PHP. In Firefox it works perfectly, but IE just shows the XML code.

I have this line in my htaccess file working great:

AddType application/x-httpd-php .xml

And this code, copied partly from another feed that works in IE:

<?php header("Content-Type: application/xml; charset=ISO-8859-1"); ?>
<?php echo '<?xml version="1.0" encoding="utf-8"?>'; ?>

<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:cf="http://www.microsoft.com/schemas/rss/core/2005">
<channel xmlns:cfi="http://www.microsoft.com/schemas/rss/core/2005/internal" cfi:lastdownloaderror="None">
<title cf:type="text">IsuggestU RSS Blog Feed</title>
<description cf:type="text">Keeping you up to date!</description>

<guid isPermaLink="false">http://www.google.com</guid>
<title xmlns:cf="http://www.microsoft.com/schemas/rss/core/2005" cf:type="text">Blog Entry Test</title>
<category>Entries By Wes</category>
<atom:author xmlns:atom="http://www.w3.org/2005/Atom">
<description xmlns:cf="http://www.microsoft.com/schemas/rss/core/2005" cf:type="html">
Description goes here!

Like I said I have no idea why this won't work in IE. Nothing I do will work and i'm pulling my hair out. PLEASE HELP!

08-12-2007, 03:53 AM
Works in IE7.

08-12-2007, 03:54 AM
I cleared the cache and it finaly works. What a nightmare!

Can someone here explain the T and the 3Z in the date line mean?


08-12-2007, 04:24 AM
I think the T is meant to indicate that the time is starting; I'm not sure about the Z. It might be a timezone setting.