Chris Carman <[log in to unmask]> wrote in article
> Just wanted to ask if the ability to do <!-- #exec file="script.pl" -->
within
> a web site is ever going to be implemented on the OpenVMS. We already
have
> <!-- #include file="filename.ext" --> and <!-- #echo ... -->, and I'd
really
> like to run random scripts within my web pages, especially "You are the
nth
> person to access this site today!". Thanks!
For graphical counter I'd recommend:
http://www.fccc.edu/users/muquit/Count.html
For a perl script to use if you do get the exec:
#!/usr/bin/perl
open (COUNT, "countfile"); # open "countf" counter file
$counter = <COUNT>; # input value from file
close (COUNT); # close file (primarily to "re-set")
open (COUNT, ">countfile"); # open "countf" for 'output'
print COUNT +($counter+1); # increment value of counter by one & write
close (COUNT); # close file
print $counter; # put the value on the page
Enjoy
-George
[log in to unmask]