простой RSS-канал

Я пытаюсь создать простой RSS-канал, но проблема в том, что когда я запускаю файл, он говорит, не хотите ли вы открыть rss.php ...

вот код, может быть, я что-то делаю не так? Я поместил его в этот формат, чтобы увидеть, как он работает.

<?php
header('Content-Type: application/rss+xml; charset=utf-8');
?>
&#60;?xml version='1.0' encoding='ISO-8859-1'?&#62;
<rss version='2.0'>
<channel>
<title>feed title</title>
<description>this is my example</description>
<link>http://localhost:8888/redline</link>
<copyright>Copyright (C) 2010 sarmenhb</copyright>
<item>
<title>Example 1</title>
<description>This is the description of the first example.</description>
<link>http://www.example.com/example1.html</link>
<pubDate>Mon, 29 Dec 2008 22:10:00 -0600</pubDate>
</item>
<item>
<title>Example 1</title>
<description>This is the description of the first example.</description>
<link>http://www.example.com/example1.html</link>
<pubDate>Mon, 29 Dec 2008 22:10:00 -0600</pubDate>
</item>
<item>
<title>Example 1</title>
<description>This is the description of the first example.</description>
<link>http://www.example.com/example1.html</link>
<pubDate>Mon, 29 Dec 2008 22:10:00 -0600</pubDate>
</item>
<item>
<title>Example 1</title>
<description>This is the description of the first example.</description>
<link>http://www.example.com/example1.html</link>
<pubDate>Mon, 29 Dec 2008 22:10:00 -0600</pubDate>
</item>
<item>
<title>Example 1</title>
<description>This is the description of the first example.</description>
<link>http://www.example.com/example1.html</link>
<pubDate>Mon, 29 Dec 2008 22:10:00 -0600</pubDate>
</item>    
</channel>
</rss>
5
задан same 4 September 2010 в 10:01
поделиться