Samuel Chang wrote:

> I am trying to run perl CGI under microsoft IIS (Windows 2000 server). I
> install activeperl version 5.6.1.635. What I have done is as follows:
> 
> 1. Add .cgi support to iis.
> 2. Write a small program as follows:
> print "Content-type: text/html\n\n";
> open (counter, "<counter");
> flock (counter, 1);
> read(counter, $count, 5);
> $count++;
> print "<b><big>$count</b></big>\n\n";
> close (counter);
> open (counter, ">counter");
> print counter $count;
> close (counter);
> flock (counter, 8);
> 3. Add the following to the html page
> 
> <img align=center src="c_visitor_count.gif">
> <!--#exec cgi="cgi-bin/count.cgi" -->
> <img align=center src="c_visitor.gif">
> 
> 4. The iis does not execute the program.
> 
> Does anyone know what I did wrong.

I've never used IIS, but you could try using '#include virtual=' instead
'#exec cgi=' since #exec may not be supported.

-- 
  ,-/-  __      _  _         $Bill Luebkert    Mailto:[EMAIL PROTECTED]
 (_/   /  )    // //       DBE Collectibles    Mailto:[EMAIL PROTECTED]
  / ) /--<  o // //      Castle of Medieval Myth & Magic http://www.todbe.com/
-/-' /___/_<_</_</_    http://dbecoll.tripod.com/ (My Perl/Lakers stuff)

_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to