in reply to Premature End Script Headers

That is only part of the error message, show the rest.