- As a "complete web page generator". I use the PHP script, customized to hard-code the RSS feed and template file URLs, as my web page (for example, renamed as "index.php"). This is useful when the only feature available to you on your web site is PHP script execution.
- As a server-side include. For example, the SSI code
on one of my course pages will cause the PHP script to generate suitable HTML to be included for the course blog's RSS feed. The template file here is just an HTML snippet. This requires both PHP script and SSI support on the web server.
- The third approach is what I'm using as of this date for the
list of upcoming conference deadlines I place in this blog's
sidebar. In this case, I can't make use of either local PHP scripts
or SSI, as Blogger doesn't support them. So, I rolled my own RSS to
than HTML (the script doesn't care what's in the template, other
than the variables that it replaces with feed information). So, the
template contains lines like:
$this->ItemTitle = trim($this->title); $this->ItemDescription = trim($this->description)must be replaced with lines like these:
$this->ItemTitle = str_replace("'", "’", trim($this->title)); $this->ItemDescription = str_replace("'", "’", trim($this->description));This will replace single quotes with HTML entities that display as quotes but won't act to close the strings in the