Normally when you get this headers sent message it is because of some extra white space that is outside of the php code blocks. You should look for any spaces outside of these script blocks and get rid of them, you should also get rid of the extra blank lines at the top of your page where you are adding in the include files. Please give this a try and let us know the result.