Well... I am not really a PHP expert, so I am not sure about those header lines. If the syntax is correct, it may be that your install of PHP does not support them or something. My guess would be that they are not really necessary though...
Don't forget to format the page how you want.

The easiest way would be to include a HTML file before and after the echo statements, such as this:
include ("header.html");
These files would just be the portions of the page above and below where the turn file is to be displayed.