To assist Will Pate in moving the Formosa Tea House RSS Feed over to its logical home on the Formosa Tea House website, I’ve put together a cleaned up and commented version of the PHP source code that generates the RSS feed.
Creative Commons License

This isn’t a profound chunk of code, but I’ve commented it liberally, so if you’re new to PHP, RSS and/or manipulating dates programatically, you might find it interesting.

You’ll need a couple of PHP classes in addition to the source here; this is all explained inside the comments.

Download the source, which is licensed under a Attribution - ShareAlike License.

Peter Rukavina

Comments

Submitted by Peter Rukavina on

Permalink

Note that Steven’s reference to “properly formatted HTML” only makes sense if you actually download the code and read the comments. The script works as delivered; Steven’s updated version makes it more standard.

Add new comment

The content of this field is kept private and will not be shown publicly.

Plain text

  • Allowed HTML tags: <b> <i> <em> <strong> <blockquote> <code> <ul> <ol> <li>
  • Lines and paragraphs break automatically.

About This Blog

Photo of Peter RukavinaI am . I am a writer, letterpress printer, and a curious person.

To learn more about me, read my /now, look at my bio, listen to audio I’ve posted, read presentations and speeches I’ve written, see things I’ve favourited elsewhere, or get in touch (peter@rukavina.net is the quickest way).

I have been writing here since May 1999: you can explore the 25+ years of blog posts in the archive.

You can subscribe to an RSS feed of posts, an RSS feed of comments, an RSS feed of favourites elsewhere, or a podcast RSS feed that just contains audio posts. You can also receive a daily digests of posts by email. I also publish an OPML blogroll.

InstagramYouTubeVimeoORCIDOpenStreetMapInternet ArchivePEI.artDrupalGithub.