here's what I'm wanting to do:
<? include 'header.php' ?>
some html
<? include 'footer.php' ?>
in header.php...
<? //bunch of code
if (something){
//some stuff here, but no close brace
?>
in footer.php....
<? } //close the if brace ?>
Is this possible? I keep getting parse errors.
Thanks.
header.php&footer.phpis to generate the literalheader&footerfor a web-page. The php logic is confined to the files itself. You cannot extend it in between files. Although maybe you already know, include files EVEN need their<?php&?>tags even if include call already enclosed in these tags.