Help
-
Search
-
Members
-
Calendar
Full Version:
beginning perl and cgi question
Hostony Board
>
General Support
>
HowTo
thiessen
Jul 3 2003, 03:02 PM
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
Jul 4 2003, 09:23 PM
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
Jul 6 2003, 12:36 PM
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.