 <p>Why don't you put that code at the top of the <code>header</code> file...</p> <p>Otherwise you could look into automatic append and prepend: <a href="http://www.electrictoolbox.com/php-automatically-append-prepend/" rel="nofollow">http://www.electrictoolbox.com/php-automatically-append-prepend/</a></p> <p>I have never tried using it, seems a little dodgy to me.</p>