Bart-Jan Vrielink <[EMAIL PROTECTED]> 12 Jun 2001, at 12:04:
> On Tue, 12 Jun 2001, Ritesh Goel wrote: > > > I have a script which runs fine from the UNIX shell. As soon as I > > try going thru the browser, I get an error which says - "Premature > > end of Script Header". What should i do or what can i do ?? > > It looks like the script does not produce any valid HTTP headers. As a > minimum it should produce a line 'Content-Type: text/html' (or any > other content-type) and a blank line, before the html begins. So that's print "Content-Type: text/html\n\n"; or print "Content-Type: text/plain\n\n"; ;-)