[eluser]Michael Wales[/eluser]
I don't know the solution because I have no idea what the problem is. The most common issue for this is white-space before/after <?php ?>
You can try removing the ?> at the end of your files, this will make PHP automatically trim out whitespace.