how about you make 6 (5+1) php files. One called static, and your 5 pages.
In static you define $header and $footer. In your 5 other pages you require your static and echo your header, paste your content, and echo your footer.
another way is using a switch to see which page you are on. This will take 2 files, one with content, and one index. From your index require the content, and switch the $_GET['id'] var for example. Then echo the appropriate var corresponding to the id.