I have a webpage in HTML, strong-links.org, and am tired of having to make changes to every single page when I update the header or footer, and someone suggested I can use PHP to reference the template within the HTML pages.
As a test, I have test.strong-links.org/index2.html live with the following code:
<html> <head> <title>Strong Links</title> </head> <body> <?php include ('header.php'); ?> </body> </html>
And header.php in the same location with the following code:
<div id="navigation"> <ul> <li><a href="">Home</a></li> <li><a href="">Test1</a></li> <li><a href="">About</a></li> <li><a href="">Contact</a></li> </ul> </div>
I am using Apache with PHP5.
Can anyone tell me why this is not working?