One of the Lieutenants here (I work at a Naval base) wants to put a counter on several pages of this department's Intranet. The webpages reside on a Windows NT Server. The reason I am coming here for help is because I am only familiar with Unix and Linux servers.
I have installed Perl on the server so I can run a counter script. I have hit a roadblock when it comes to shtml, though. I want to use an include statement
<!--#exec cgi="e:\textcounter.cgi"-->
to call the counter. First of all, is that the correct format for a Windows box? Anyway, in order for the include to work, it of course has to be in an shtml file. I can't seem to get the server to recognize an shtml file extension. How do I go about doing that? Also, for the path to perl in a .cgi file residing on said Windows server, is
the correct way?
Thanks for reading this far.
:Update:
Okay. It seems the problem is with the call. I can pull up the file (counter.shtml) from a remote machine, but the counter is not displaying. Here is the source for counter.shtml:
<html> <br /> <br />test <br /> <br /><!--#exec cgi="\textcounter.cgi"--> <br /> <br /></html>
The file textcounter.cgi resides in the same folder as counter.shtml. It seems that the script is not running. I have installed Perl and was able to run a test .pl script. Any ideas on what I'm missing? Do I need to setup a .htaccess file? If so, where? I've tried putting it right with the other files. Here is what I put in it:
AddType text/html .shtml <br />AddHandler server-parsed .shtml <br />Options Indexes FollowSymLinks Includes
*pulling out hair*