in reply to 'Premature end of script' errors running script as CGI

You never send anything on STDOUT. Where's your Content-Type header? Where's the text you want to show the user? The user is requesting a page, yet your script doesn't return one, thus the "Premature end of script headers".
  • Comment on Re: 'Premature end of script' errors running script as CGI