为什么最简单的CGI程序不运行,55555555
#!/usr/bin/perl
use warnings;
use strict;
print"Content-type:text/html\n\n";
print"<html><head><title>Current date and time</title>";
print"</head>\n<body>";
print scalar(localtime());
print "</body></html>\n";
就是这么简单,在linux下,命令行下结果正常,为什么浏览器就:
Server error!
The server encountered an internal error and was unable to complete your request.
Error message:
Premature end of script headers: index.pl
帮忙了,555555555555555555