A quick update to the PHP script for the RSS to Javascript demo posted here May 7.

For a reminder, this is a strategy for incorporating RSS feeds into ANY web page (HTML, Blackboard, WebCT) via a reference to a single line of JavaScript code.

The mian improvements (suggested by Randy Brown) were to add URL parameter options:

  • to show/hide channel information
  • set a number of items to display
  • show/hide the item descriptions

I also changed the way the script accesses the variables to the $_GET array as some servers that have PHP security settings for globals=off may run into some trouble (this was a first attempt at addressing this issue; and I am not sure it takes care of the problem- see I am a hack programmer ;-)

The post "RSS to JS update" was originally pulled like taffy through a needle's eye at CogDogBlog (http://cogdogblog.com/2003/05/rss-to/) on May 13, 2003.