Ok  ...after the #!/usr/bin/perl  ... fix
  
 the next thing to check for is ^M

 this is the extra CR that Windoze editors leave behind ...

 you can open this file up on a linux box using fox-editor 

 it will show any offending ^M's .... delete them ...then try again ...

regards

SunDog
===========================================




At 12:17 AM 5/2/01 -0500, you wrote:
>I am getting an "Internal Server Error" returned to my browser. The error
>log shows the following:
>
>"[Wed May  2 00:04:39 2001] [error] [client 192.168.0.10] Premature end of
>script headers: /path/to/filename"
>
>I have set the directory and file to 755 and the correct ownership. I have
>tried a couple simple scripts and gotten the same error:
>
>_First_Script_
>
>       #!/usr/bin/perl
>       print "Content-type: text/html\n\n";
>       foreach $key (keys %ENV) {
>            print "$key --> $ENV{$key}<br>";
>       }
>
>_Second_Script_
>
>       #!/usr/bin/perl
>
>       print "Content-type: text/html\n\n";
>       print " 


";
>
>Any ideas would be appreciated,
>Patrick
>
>
>

Reply via email to