Well....I know it's not recommended changing how the server interprets .htm
or .html files,....however, if the site doesn't really take a huge amount of
hits....and it's hosted on a server by itself.....and the company flatly
refuses to change the page names for fear of breaking bookmarks or some
other silly reason....then allow CF to parse through html files isn't a huge
load......
But, if the hardware can't take the work and/or traffic beefs up, could slow
everything down....?
Erika
-----Original Message-----
From: Douglas Knudsen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 04, 2001 2:28 PM
To: CF-Talk
Subject: RE: Includes on HtML?
But the question was "can I <cfinclude> a file from a page with the
extension .htm or .html?" The answer is no. There is file inclusion
using server side includes, which is actually how it is done in ASP.
The thing to keep in mind is that 'includes' are synonymous with
'inline functions' as in C programming. The code just gets pasted to
the current 'page'. So, if you could include a .cfm file within a
...html file, the CFML would not get processed unless you told your Web
Server to run all .html files through your ColdFusion App Server,
something that is usually not recomended. Check out Allaire's site.
There are some diagrams there on the interactions betwix web server,
cold fusion app server, and browser. Ask yourself 'What actually
happens when I enter a URL and hit enter from my favourite browser?'.
I think your stuck changing your files to .cfm files. opinions?
DK
From: [EMAIL PROTECTED] AT INTERNET on 04/04/2001 01:20 PM
To: [EMAIL PROTECTED] AT INTERNET@CCMAIL
cc: (bcc: Douglas Knudsen/ATL/ALLTELCORP)
Subject: RE: Includes on HtML?
You can CFINCLUDE a file with any extension.
-----Original Message-----
From: SHEETS, DAYV (PB) [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 04, 2001 12:21 PM
To: CF-Talk
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
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists