in reply to Serious newbie needs some help with a cgi script on a windows platform

Hi, Since Windows runs by file association make sure your script has a pl extension ie test.pl Windows should then find the Perl compiler for you.
Your sole purpose in life maybe to serve as a warning to others.
  • Comment on Re: Serious newbie needs some help with a cgi script on a windows platform
  • Download Code

Replies are listed 'Best First'.
Re^2: Serious newbie needs some help with a cgi script on a windows platform
by BUU (Prior) on Jun 14, 2005 at 06:43 UTC
    Windows may, but Apache (or more accurately, mod_cgi), on windows or other wise, reads the shebang line of any CGI script and uses that program to execute.

    (Well, on linux it may not actually read the shebang, it may just pass it to the kernel program executing dealy thingy. But on windows it reads the shebang.)
Re^2: Serious newbie needs some help with a cgi script on a windows platform
by ww (Archbishop) on Jun 14, 2005 at 14:25 UTC
    While Robertn' observation is true (within limits) for running perl scripts from the Windows command line (but note that it's perfectly possible to run
    C:/perl foo.cgi
    too), in the OP's situation, the Apache configuation determines the required file_type_extension for the script... which may be .cgi, .pl or either.