KevinM2k
07-01-2005, 09:54 AM
Hi, this is my first post, hope someone can help, im trying to learn rss, i've managed to create an xml file successfully however I want to be able to create an xml file using php, i have teh following code:
<?php
header("content-type: text/xml");
?>
<?xml version="1.0" encoding="iso-8859-15"?>
<?xml-stylesheet type="text/css" href="feed_rss.css" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
<title>Test Article</title>
<description>Test Description</description>
<language>en</language>
<link>http://www.test.com</link>";
<item>
<title>test</title>
<description>est</description>
<link>http://www.test.com/articles.php?</link>
</item>
</channel>
</rss>
This isn't working, can someone explain why this is?
Thanks
Kevin
<?php
header("content-type: text/xml");
?>
<?xml version="1.0" encoding="iso-8859-15"?>
<?xml-stylesheet type="text/css" href="feed_rss.css" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
<title>Test Article</title>
<description>Test Description</description>
<language>en</language>
<link>http://www.test.com</link>";
<item>
<title>test</title>
<description>est</description>
<link>http://www.test.com/articles.php?</link>
</item>
</channel>
</rss>
This isn't working, can someone explain why this is?
Thanks
Kevin