Ok so ive made a website (not currently publicly available
) and to make things a little easier for myself, i have incorporated some _really_ simple PHP.
Atm my index.php file is as follows:
code:
<html>
<body>
<?php include 'header.html' ?>
<td class="main">
hello
</td>
<?php include 'footer.html' ?>
</body>
</html>
Now in the output, the "hello" is not produced, in fact anything in between the two php lines is not produced; even though the header.html and footer.html render perfectly.
Some info:
as you can tell, the info inside the two <php> lines is part of a table.
There are no unclosed tags inside any of the documents, and im pretty sure all the code is fine.
Also another note, having all 3 files together (header.html + footer.html + index.php - its php) in a single .html file works correctly and renders everything.
Can anyone help me?
Thanks