Jump to content

[SOLVED] Creating RSS/XML in PHP


Recommended Posts

Hey guys,

 

I'm trying to create a RSS file using PHP.

 

I have URL links, for some reason, the "=" sign seems to be messing up the whole thing,

 

See sample below, I get the error, which says it expects a ";" after the "=" - Does anyone know a way round this?

 

<item>

<title>
<![CDATA[Lee rejects arrogance claims]]></title>
<link>http://www.rivals.net/news/pgarticle.aspx?artid=13482_5216124&id=46</link>
<comments></comments>
<pubDate>Tue, 21 Apr 2009 16:15:26 BST</pubDate>
<description><![CDATA[sammy Lee has rejected suggestions that Rafael Benitez made any gesture which could be considered as dismissive while on the touchline and said the Liverpool boss is far from arrogant.]]></description>
</item>

 

It's become soo irratating, that now I'd happily settle for a simple XML file, rather than a RSS - If anyone can point me in the right direction of a tutorial that will show me how to create an XML file, with items, such as above, please do so.

 

Thanks for your thoughts.

 

Will

Link to comment
https://forums.phpfreaks.com/topic/156700-solved-creating-rssxml-in-php/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.