What about this...
main.php
<?php
$a = "some text";
include("header.inc");
echo $a;
include("footer.inc");
?>
header.inc
<html>
<head><title>information</title></head>
<body>
<table>
<tr>
<td align="top">
footer.inc
</td>
</tr>
</table>
</body>
</html>
Question 1
Should line 6 of header.inc have commented out quote marks, or is it OK as it is?
Question 2
Should the included files start and end with <?php and ?> tags, or can they be left as "pure" text?
Question 3
Do you have a better solution?
I appreciate your ideas and help - it may be basic but it is a confusing point, crucial to an understanding of how php works, and I just don't get it!