PHP Includes, Yum
By Daniel Miessler on January 27th, 2006: Tagged as Programming | Webdesign
So I realized it was quite tedious to make a change to my footer for my “static” content (/study, /writing, etc.) and then reproduce that change across all of my pages.
Turns out, this is what PHP includes are for. So, as of now, all of my “static” pages are actually PHP pages so that includes can be called for the footer and Google Analytics portions of each page.
As you’d expect, those are the parts of the site that don’t change, but even if they were to it’d be very simple to just edit the footer.php or googleanalytics.php pages — at which point the change would be implemented in every page with the include.
Cool stuff.
--

You’ve been blogging since 1996 and you’ve just discovered this? LOL :) I’m just poking fun of course, but it is kind of funny. Keep up the good work Daniel.
Comment by Allan — 1/27/2006 @ 1:12 am