Hey all,
I've been away from this for about two years, so I really appreciate your patience and understanding.
I'm trying to determine whether or not my Apache is setup correctly to run cgi scripts. I have a test cgi script which looks like the following:
#!/usr/local/bin/perl -wT
use strict;
use CGI ':standard';
my $animal;
$animal = param('animal');
lprint "Content-type" text/html\n\n";
lprint "Yes this works!\n\n";
lprint "You ROCK man!";
Now, I know there's some unnecessary stuff in there, but to my knowledge, nothing in there should be giving me any trouble if it just sits there. Unfortunately, I'm getting the following in the error_log:
Premature end of script headers
Frankly, I can't quite remember what this means so I'm throwing myself at your mercy (until I catch up to where I was). Any advice?
- MT
I've been away from this for about two years, so I really appreciate your patience and understanding.
I'm trying to determine whether or not my Apache is setup correctly to run cgi scripts. I have a test cgi script which looks like the following:
#!/usr/local/bin/perl -wT
use strict;
use CGI ':standard';
my $animal;
$animal = param('animal');
lprint "Content-type" text/html\n\n";
lprint "Yes this works!\n\n";
lprint "You ROCK man!";
Now, I know there's some unnecessary stuff in there, but to my knowledge, nothing in there should be giving me any trouble if it just sits there. Unfortunately, I'm getting the following in the error_log:
Premature end of script headers
Frankly, I can't quite remember what this means so I'm throwing myself at your mercy (until I catch up to where I was). Any advice?
- MT