Home « Server software «
Documentation: feeds/rss_0.92.php
feeds/rss_0.92.php - Provide news in the RSS 0.92 format
This script lists the ten newest published articles, providing following information:- title - the title of the article
- url - the absolute url to fetch the article
- time - the date and time of article last modification
- author - the last contributor to the article
- section - the label of the section from where the article is originated
- image - the absolute url to fetch a related image, if any
You will find below an excerpt of a real RSS 0.92 feed:
<?xml version="1.0"?>
<rss version="0.92">
<channel>
<title>blog</title>
<link>http://circle.ch/blog/index.php</link>
<description>babblings!</description>
<lastBuildDate>Thu, 23 Jan 2003 17:53:39 GMT</lastBuildDate>
<docs>http://backend.userland.com/rss092</docs>
<managingEditor>urs@circle.ch</managingEditor>
<webMaster>urs@circle.ch</webMaster>
<language>en</language>
<item>
<title>nanoweb and OpenOffice.org releases</title>
<description>I just found some new releases; one on the webserver called nanoweb (2.0.1), which is hacked completely in PHP [1] and a new release of the Office suite OpenOffice.org (1.0.2) [2].</description>
<link>http://circle.ch/blog/p560.html</link>
</item>
<item>
<title>HTTP-server written in Postscript</title>
<description>PS-HTTPD [1] is a HTTP-server written in Postscript. It is very simple (even if the code is somewhat complex) but can handle the basic tasks of a web-server. There are also Debian packages available [2].
[1] http://pugo.org:8080
[2] http://www.godisch.de/debian/pshttpd/ </description>
<link>http://circle.ch/blog/p558.html</link>
</item>
...
<item>
<title>Common UNIX Printing System for Mac OS X </title> <description>[via whump.com] Use CUPS to print to any PostScript printer now also on Mac OS X [1].[1] http://www.macosxhints.com/article.php?story=20020827081141461 </description>
<link>http://circle.ch/blog/p539.html</link>
</item>
</channel>
</rss>
If following features are enabled, this script will use them:
- compression - Through gzip, we have observed a shift from 2900 bytes to 909 bytes, meaning one Ethernet frame rather than two
- cache - Cache is supported through ETag and by setting Content-Length; Also, Cache-Control enables caching for some time, even through HTTPS
This script is a reference file of this system.
Voir aussi:
Licence: GNU Lesser General Public License
Auteurs:
- Bernard Paques bernard.paques@bigfoot.com