In more of a "quick tip" format over on phpPatterns.com, there's a new posting talking about Bringing Static HTML to Life with PHP.
In this new post, the author shows you how to, quickly and easily, add dynamic content to all of the pages on a static site without having to edit every single one of the pages to stick some PHP inside. It involves getting into the Apache config, adding a ForceType, and, using an .htaccess file, prepending/appending a PHP file to every page of the site. The PHP file, in turn, uses output buffering to "catch" the HTML from the rest of the site in the buffer and outputs it when you want.
This tip is a wonderful, simple way to get that little dynamic something added to a site that's currently completely static - and is much simpler than hand-editing each .html file.




