Helio S. Junior writes ..

>Does anyone know how to configure a Win2k Web Server?
>What do i have to do in the Web Server and on my
>machine in order to be able to write CGI Applications?
>
>I have got the Win32 port of Perl from ActivePerl.

when you install ActiveState's Perl .. if there's a "Default Web Site" in
IIS (which there is unless you've deleted it) then the installation will do
everything you need so that any file with extension .pl in the "/scripts"
directory will run as a CGI

for more information - see the ActiveState HTML documentation (there'll be a
link to it on your Programs menu) .. assuming that you're installing the
latest release from ActiveState there's an excellent section on configuring
an IIS 4.0 server .. the same holds true for IIS5 on Win2k

here's a test CGI application for you (it just prints out all the HTTP
variables)

  #!perl -w
  use strict;

  print "Content-type: text/html\n\n";

  print "$_ => $ENV{$_}<br>\n" for sort keys %ENV;

  __END__

-- 
  jason king

  A Canadian law states that citizens may not publicly remove bandages.
  - http://dumblaws.com/

Reply via email to