You can not use PHP code in CalendarScript (well you can but it will just be ignored). You can use a simulated SSI tags (see
Documantation: Customization: Include Files) to include headers, footers, etc. Such included files must basically be static files but if they contain Perl code, that code may be executed (depending on what it is).
If the files you plan to include have any PHP code, that PHP code will not be processed.
Dan O.
------------------