One of the most important parts of building any web site is ensuring that all the web pages that it contains have a consistent look and feel. For example each page may require:

  • the same header to be displayed
  • the same footer to be displayed
  • sames links to be displayed down the side of the page.

This can, of course, be done by editing the HTML in each page (which is time consuming) or by using frames (which is not particularly popular). However, it can be also achieved by using just a few lines of PHP code.