Help - Search - Members - Calendar
Full Version: beginning perl and cgi question
Hostony Board > General Support > HowTo
thiessen
I have a script at thiessengraphics.com/cgi-bin/test.cgi that is giving me an internal server error. The permissions have been set to 755. Any ideas what is wrong?

#!/usr/bin/perl

print "hello world";
BigJimW
Try this:

#!/usr/bin/perl

print "Content-type: text/html\r\n\r\n";
print "<HTML>\n";
print "<HEAD><TITLE>Hello World!</TITLE></HEAD>\n";
print "<BODY>\n";
print "<H2>Hello World!</H2>\n";
print "</BODY>\n";
print "</HTML>\n";

exit (0);

Your output will look like this if it works:

http://www.moonport.org/cgi-bin/hello.cgi

- Jim
thiessen
Thanks!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2024 Invision Power Services, Inc.
IPS Driver Error

IPS Driver Error

There appears to be an error with the database.
You can try to refresh the page by clicking here