Specify
$includeHeader='./templates/main_header.shtml'; $includeFooter='./templates/main_footer.shtml';
(it should contain full relative or absolute path to the files).
In general, I don't know why you need to use old-fashioned buggy SSI include, if include is already available in PHP. Better rename these files to .php.
One more thing: variables like {$title} etc. inside default templates will not work, when included directly. You need to rewrite all them in PHP styling code, like:
<?=$GLOBALS['title'];?>
or <$php echo $GLOBALS['title']; ?>
and so on for all vars. |