This is more of an Apache question, but I figure someone here might have an answer.
I want to have a header (or footer) PHP script dynamically appended to every html page being served by Apache. But I want to avoid adding includes to each file.
The only way I have thought of to do this is to use <a href="http://www.tangent.org/mod_layout/">mod_layout</a>. The problem with the mod_layout method is that it has to generate an http sub-request for the PHP script. This causes problems because I am using PHP session handlers, and the session cookie doesn't go through. This method is also taxing on Apache performance.
Does anyone have any thoughts on this?