On Tuesday 04 Feb 2003 6:43 am, Samuel Mauntz wrote: > Here's the code... > > #!/usr/bin/perl > > > print "<HTML>\n"; > print "<HEAD>\n"; > print "<TITLE>Perl Test Page</TITLE>\n"; > print "</HEAD>\n"; > print "<BODY>\n"; > print "Perl Test Page\n"; > print "</BODY>\n"; > print "</HTML>\n"; > > > when I run it from the command line, it runs fine and prints out the > results, but I get a 500 error every time I try to run it on my web server. > The permissions on the file are set to 755, so the script should have perms > to execute. > > Does anyone have any ideas?
Hi, You've missed out the Content header. Try putting the following at the top of your script print "Content-type: text/html\n\n"; -- Gary Stainburn This email does not contain private or confidential material as it may be snooped on by interested government parties for unknown and undisclosed purposes - Regulation of Investigatory Powers Act, 2000 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]