Split header, content and footer using PHP