You are here: Re: Tool to build RSS feed? « PHP Programming Language « IT news, forums, messages
Re: Tool to build RSS feed?

Posted by Gilles Ganault on 05/30/07 18:51

On Tue, 29 May 2007 23:55:53 +0200, Gilles Ganault <nospam@nospam.com>
wrote:
>Is there some PHP tool that would make this easy to do?

Apparently, it's not that complex, and I just need to create a text
file that looks like this:

=================
<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/">
<channel>
<title>My Dummy Channel</title>
<link>http://localhost/dummy.xml</link>
<description>Some dummy channel</description>
<!--pubDate>Wed, 30 May 2007 15:30:15 CEST</pubDate-->
<item>
<title>Some dummy title</title>
<link>http://localhost/1.html</link>
<pubDate>Wed, 30 May 2007 18:15:19 CEST</pubDate>
<guid>http://www.sortirsurparis.net/sortie_read.php?13521</guid>
<description>Some <a
href="http://localhost/1.html">link</a>.</description>
</item>
</channel>
</rss>
=================

=> Although it's not PHP-related... I have a couple of questions:

1. Do I have to update the Channel's <pubDat> every time I add an item
in the file for RSS clients to notice that it was updated, or do RSS
clients parse the whole file and read each item's pubDate to tell if
they know about it?

2. Do RSS clients keep track of items they know about, so that I don't
need to keep more than today's items in the file (just for readers who
only check this RSS feed when they come home)?

Thank you.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация