this is the way that I did it.

in the phpinclude template

$GLOBALS['yourhtmltemplate'] = gettemplate('yourhtmltemplate');

and then in your header template...