See Suffering from buffering. You probably had an error and it was output before your headers.
In reply to Re: Premature... by diotalevi in thread Premature end of script headers ? by Gorby