May 07, 2003
Note: CogDogBlog has a new WordPress powered home at http://cogdogblog.com/. All entries from this version have been moved there, so as a guide dog service try finding this article in its new home by title search.
RSS to JS examples+code
To follow up on the RSS in Blackboard piece, I have posted a new page that documents and demos RSS to JS along with the source PHP code.
This is pretty crude stuff, but anyone could more or less have one or more RSS feeds into any web site, WebCT, Blackboard, blog page without getting their fingers into messy XML.
Toss in some CSS and you can pretty it as you please. Thanks to D'Arcy Norman for cleaning up some bits of the PHP code.
All PHP is provided for those that want to run it themselves.
One reason to possibly run your own parses is you could easily add a logging capability. Hmmmm
blogged May 7, 2003 04:26 PM
:: category [
Feed for comments on this entry
Feed for all CDB comments
I downloaded the zip file and put it in my web site directory in a folder called "feed". Then I set the web page code to
Doesn't work. Maybe it is rocket science.
You should first make sure your web site host supports PHP.
Then you should test your PHP script by executing it as a URL in your web browser, e.g., the site you attempted, works on my script:
Finally, in the code you sent me:
will only work if you call it from a web page in the same directory as your PHP script, ideally you would issue a FULL url that points to your script:
This is experimental, free, so some leg work is going to be on your end.
Well, I tried everything and everything is as you say it should be but it still only works when I use the http://jade.mcli.dist.maricopa.edu URL so it must be something else about my ISP's server config. I even tried the FTP permissions.
I was mainly interested in this to share it with my local RSS group but it does not seem to be as "no brainer portable" as I hoped.
I am guessing Rick, your issue is with PHP global settings being OFF on your server, and the way I had written the code did not address this.
I have made an update of the code (blogged) to try and take care of this, as well as add some display options mentioned by Randy Brown.
Those nasty blog-spamming roaches have forced us to take action to prevent their spread- all entries made to this blog will remain open for comments for 30 days after the original posting date. After that, it is old news anyhow, correct?
If you really need to make contact with the chief dog around here, please submit a request via our feedback center