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=""> <!--#exec cgi="cgi-bin/count.cgi" -->
<img align=center src="">
4. The iis does not execute the program.
Does anyone know what I did wrong.
Thanks,
Sam
At 08:48 PM 9/16/2003 -0700, $Bill Luebkert wrote:
Mohammed Khatib wrote:
> Does anyone know a way of accessing the current working directory?
> I've looked high and low for this - I thought it might be a special
> variable, but it seems that it's not.
use Cwd;
$dir = cwd;
or
$dir = getcwd;
--
,-/- __ _ _ $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
