The easiest solution is to create separate files.
- header.php
- footer.php
- menu.php
In header.php put your code from the header
<?php ?> <HTML> <HEAD> </HEAD> <BODY> ... <? ?>
The same goes for footer and menu files.
Then you can use it by turning them on.
Your index.php might look like this.
<?php include("header.php"); include("menu.php"); ?> <h1> This is my content </h1> <?php include("footer.php"); ?>
This is the easiest option that I think for those who do not want to spend using templates, CMS, etc. You can also create a function called a title that accepts the title $ title and change of your window. To you.
Luke source share