fleshyorgans

tryin’ not to be a linux fanboy

fleshyorgans Two Cats

Code: Dynamically Insert HTML Into Any Rendered PHP Page

February 15th, 2008 · No Comments

So, this pleases me enough to post it.

dynamic buffer insertion with PHP

Needed to quickly add a notice to every page on a client’s site where there was a single include, but not single-included layout pages (teachers, *sigh*).

I’ve never messed with output buffer stuff before, so this was just sort of surprising to me. It’s insanely useful.

Only took about a minute to code, and two to deploy.

Tags: , ,

0 responses so far ↓

  • There are no comments yet...Kick things off by filling out the form below.

Leave a Comment