You can use the 'include' function, but you have to change the extension for every page that will use that file.
For example, we have a page called 'header.php', and another one called 'body.php' . If you want to include the header file in second one, open body.php and add this code:
<?php...