Configuring and Testing a PERL Script with IISLast reviewed: May 21, 1997Article ID: Q150629 |
The information in this article applies to:
SUMMARYThe following PERL script can be used to test for the proper installation and execution of CGI scripts with Internet Information server.
MORE INFORMATIONCreate a file with Notepad, and type the following lines of code. Save the file in the scripts directory as Helloworld.pl. print "HTTP/1.0 200 OK\n"; print "Content-Type: text/html\n\n"; print "<HTML>\n"; print "<HEAD>\n"; print "<TITLE>Hello World</TITLE>\n"; print "</HEAD>\n"; print "<BODY>\n"; print "<H4>Hello World</H4>\n"; print "<P>\n"; print "Your IP Address is $ENV{REMOTE_ADDR}.\n"; print "<P>"; print "<H5>Have a nice day</H5>\n"; print "</BODY>\n"; print "</HTML>\n"; Once you have created the file, you need to configure PERL to run securely with Internet Information. Perl.exe should not be located in any of the directories accessible by a user with a browser. With a script mapping in the registry, you can place the Perl.exe outside of the normal directory structure a user has access to.
To configure PERL script mappingWARNING: Using Registry Editor incorrectly can cause serious, system-wide problems that may require you to reinstall Windows NT to correct them. Microsoft cannot guarantee that any problems resulting from the use of Registry Editor can be solved. Use this tool at your own risk.
http://<Server Name>/scripts/helloworld.pl? |
Additional query words: prodnt
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |