Forum Moderators: coopster & phranque

Message Too Old, No Replies

error: premature end of script

         

J64sqs

2:08 am on Mar 29, 2004 (gmt 0)

10+ Year Member



I'm trying to set up a perl script. But whenever I type the setup file in my browser to start the set up, I get an internal server error. I've double checked permissions and paths, but I still get the error. Looking at my error log, the error reads:

Premature end of script headers: /home/username/public_html/cgi-bin/starsreview/sadmin.pl

What does that mean?

coopster

5:39 pm on Mar 29, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Could be a number of things...
  1. Does your shebang line contain the correct path?
  2. Did you set the file permissions?
  3. Did you print a "Content-Type: text/html\n\n" before any other output to the browser?