Normally a common header would give the same title and style sheet to all pages that include the header.
This example shows how you can customize page titles and stylesheets when using a common header/footer.
That is, different pages can use the same header file, but get different titles and stylesheets.

Like always with PHP scripts, you will have to download the source code and look at it to see how this example works.