in reply to Premature end of script headers ?

See Suffering from buffering. You probably had an error and it was output before your headers.