It's not in CF, it's done through your webserver. You add the extensions
you wish to be parsed as cold fusion types. For example, in Apache:

AddHandler type-coldfusion .mml
DirectoryIndex index.mml

Adds the extension .mml to be parsed by CF. (.cfm is added as part of the
cf module)

> I'd rather Cold Fusion parse through the HTM/HTML files. How is this done
> via CF Server?
> 
> Dayv 
> 
> 
> 
> -----Original Message-----
> From: Andrew Tyrone [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 04, 2001 2:03 PM
> To: CF-Talk
> Subject: RE: Includes on HtML?
> 
> 
> In my opinion...
> 
> Unless you have a huge amount of html files and are running other web sites
> on the same server, this won't be a big performance concern.
> 
> Also, remember, that if you have more than 1 virtual site on the server, you
> can configure the applicable site to process htm and html files through the
> ColdFusion server, so only that site will be processing the files through
> CF.
> 
> To use server side includes will not offer that much of a performance gain
> since the ssinc.dll must then process the html files as well (by default it
> is mapped to .shtm, .shtml and .stm files).  So you'd be stuck in having the
> ssinc.dll process the files vs. having ColdFusion's iscf.dll do the work.
> 
> Changing file extensions is not really dangerous.  Many sites use their own
> custom extensions.  If portability is not a concern then go ahead and do it.
> Of course you can always rename the files and change the mappings back to
> the way they were in IIS.
> 
> - Andy
> 
> > -----Original Message-----
> > From: Erika L Walker [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, April 04, 2001 3:37 PM
> > To: CF-Talk
> > Subject: RE: Includes on HtML?
> > 
> > 
> > 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

Reply via email to