> home
> Documentation
> Modules
As a direct connection from Flash/Laszlo/[JavaScript] to a RSS-Feed is forbidden by security Policy ( http://en.wikipedia.org/wiki/Cross-site_scripting
) all RSS-Feed are loaded thru the PHP-layer. That means PHP does a real HTTP-Request to a RSS-Feed URL.This is handled by fsockopen ( http://de.php.net/fsockopen
). This should work everywhere ... to use a simple fopen you would have to set a php-ini-var (allow-url-fopen).
So in generall the HTTP-Request is send and the Response will be parsed by an PHP-XML-Parser (no [RegExp]). If the Respones Status Code is 302 ( http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3.3
) the PHP-Layer will try to load the RSS-Feed by the URL of the "Location-Field" of the http-response. It should be possible to load all RSS 0.9/1.0/2.0 RDF/Atom-Feeds thru that but please try and test your favorite. I'll add some free configurable client.
The RSS-Feed will be parsed into an Array which looks serialized like that:
<item>
<link>http://anway
</link>
<title>blbla</title>
<description>blabalbalablab</description>
</item>
Do we need more Information from a RSS-Feed like link/title/description?
It took long to handle RSS-Feeds which have HTML in the description of their feed items. They will now all be urlencoded ( http://www.php.net/urlencode
) before send. The Client uses Javascript Function unescape ( http://www.javascripter.net/faq/unescape.htm
) to get the real HTLM-Tags before the text is set in the [FeedList].
At the moment ( http://bigscreen.osuosl.org/oslmon/dev/
) it just loads some example/default RSS-Feeds which will be shiped with the oslmon out of the box. I'll replace that by some configured RSS-Feeds which will be loaded from the configuration-database-table for that modul.
Stuff missing:
-A refresh button for manual refresh(at the moment time driven 60 sek)
-Mark the button of the RSS-Feed which is selected (needs to be done later .. there is a layout-bug in the [OpenLaszlo] Server)
You can also use the RSS-Modul on your WebSide as Solo application:
http://bigscreen.osuosl.org/oslmon/rssfeedsolo/
Or as a Wordpress-Plugin for your Blog-Page:
http://bigscreen.osuosl.org/oslmon/wordpress/rssfeedreader/