in reply to Premature end of script headers

CGI Help Guide has a list of common errors to check