I have checked my books, checked permissions, and am still having trouble. Here is my code in a file named hello.pl. I have a link to this file off my web page to test it. (Maybe this part is now right?...) - - - - - - - - - - - - - - - - - - - - - - #!/usr/bin/perl
# hello.pl print "Content-type: text/html\n\n"; print <<END_OF_FILE; <HTML> <HEAD> <TITLE>Hello</TITLE> </HEAD> <BODY> <p>Hello, world!</p> </BODY> </HTML> END_OF_FILE - - - - - - - - - - - - - - - - - - - - - - - - When I have this file in the CGI-BIN directory, I get an internal server error. So I put it in with my HTML files, and this is now what I get in the browser. - - - - - - - - - - - - - - - - - - - - - - - - #!/usr/bin/perl # hello.pl print "Content-type: text/html\n\n"; print < Hello, world! END_OF_FILE - - - - - - - - - - - - - - - - - - - - - - - - I started with the permissions of both the CGI-Bin directory and the file at 755, then changed to 777. No luck. I have tried with both a .pl and .cgi extension. There is another .pl file in the CGI-BIN directory that works fine. It is executed on clicking a submit button. The first line of this file matches the first line of the file that works. Apache Server - Red Hat 8 __________________________________________________ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
