I believe that my host has tried to resolve the problem with executing Perl scripts, but now get a new error, the script is as follows, along with the log file that is generated from the server. As far as I can see there is nothing wrong from this basic script and debugs all ok, any suggestions would be much appreciated.
print "Content-type: text/html\n\n";
print "<HTML><HEAD>";
print "<TITLE>CGI Test</TITLE>";
print "</HEAD>";
print "<BODY><H2>I just wrote a web page using Perl!</H2>";
print "</BODY></HTML>";From the server error log
[Sun May 16 23:48:29 2004] [error] [client 219.3.228.42] Premature end of
script headers:
/home/fhlinux196/c/causeandfx.org.uk/user/htdocs/cgi-bin/hello.cgi
Code:
#!/usr/bin/perl print "Content-type: text/html\n\n";
print "<HTML><HEAD>";
print "<TITLE>CGI Test</TITLE>";
print "</HEAD>";
print "<BODY><H2>I just wrote a web page using Perl!</H2>";
print "</BODY></HTML>";
[Sun May 16 23:48:29 2004] [error] [client 219.3.228.42] Premature end of
script headers:
/home/fhlinux196/c/causeandfx.org.uk/user/htdocs/cgi-bin/hello.cgi