I decided to code a website where each rewritten URL has its own file, instead of parsing them all with one file. Now, I want to capture output generated by any file, and use PHP to parse it ( beautify it, shrink it ). Is this possible?
I remember doing this with CSS and JS code to GZip them, but I can’t remember what technique I used.
Thanks,
Sanil
You’re probably looking for
auto_prepend_file. You can register an output filter in that file that then automatically jumps into action.