Hi there,
The "headers already sent" error typically means there is some white space between PHP tags before the HTML output is started. If you look above your head code, try to go through and ensure that when one PHP block ends, there is not an actual space after any closing tags.
One way to ensure there is no white space would be to bring the opening tag of a new php block right next to the closing tag of the last block, like this:
?><?php
Technically, though, as long as it is a return after the closing block (making sure the space bar was not hit) and then the very next line starts your new block, you should be ok.
Best regards,
Brian