Dayv,
I thought you might be able to run a CF template using server side includes
(SSI) and figured you could use the SSI <!--#exec cgi="mycounter.cfm" --> to
run a CF template. I tried, but never got it to work. In doing a search
(on Google) to find more information about the differences between IIS's
implementation of SSI and Apache's, I came across this freeware:
http://www.greyware.com/software/ssi-utl/
Follow the "SSI for IIS " link for an IIS counter that should do EXACTLY
what you're looking for. From a quick read of the web site, it looks like
it will store the counter info in the system registry, so it might not be
ideal for tracking tens of thousands of pages. Being an EXE, though, it
will probably be faster than a comparable CF template.
>From the web page: "Copy iiscount.exe to your scripts directory, and, from
an SSI-enabled page, include the text <!--#exec
cgi="/scripts/iiscount.exe" --> wherever you want the count to appear. At
run time, the server will replace the exec command with that page's hit
count."
Just make sure you have at least one file extension mapped to the SSI
processor. Usually it's .stm or .shtm. An HTML file will have to have that
exension to get processed by the SSI engine. You could also map .htm
through the SSI processor, but that may increase your system overhead
considerably.
Jim
----- Original Message -----
From: "SHEETS, DAYV (PB)" <[EMAIL PROTECTED]>
To: "CF-Server" <[EMAIL PROTECTED]>
Sent: Wednesday, April 04, 2001 4:30 PM
Subject: RE: Includes on HtML?
> It didn't work...
>
>
>
> -----Original Message-----
> From: Priscilla Yamin [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 04, 2001 12:13 PM
> To: CF-Server
> Subject: Re: Includes on HtML?
>
>
> I have used <cfinclude template="filename.htm"> and had it work on some
> pages and not on others. Try it.
> When it didn't work, I just made a copy of the htm file and rename it cfm
> and it was fine.
>
> ----- Original Message -----
> From: "SHEETS, DAYV (PB)" <[EMAIL PROTECTED]>
> To: "CF-Server" <[EMAIL PROTECTED]>
> Sent: Wednesday, April 04, 2001 12:20 PM
> Subject: Includes on HtML?
>
>
> > Hi All,
> >
> > Another question.
> >
> > Can you <cfinclude> from *.htm *.html based files? I want to be able to
> > include a hit counter on some of our pages but not by not having them
> > changed to .cfm.
> >
> > Thanks,
> > Dayv
> >
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To unsubscribe, send a message to [EMAIL PROTECTED] with
'unsubscribe' in the body or visit the list page at www.houseoffusion.com