your web server to treat .htm files as .cfm files. That way you could
put ColdFusion code directly into your "html" files and continue to keep
the appearance of having static HTML pages.
It's also worth mentioning though that there would be *some* performance
hit in doing this because your regular .htm files would also be passed
through the CFML parser. In my experience, in most applications, this
is not noticable.
One solution I implemented was to map my .htm extension to .cfm and
leave my .html extension alone. That way if I had high traffic pages
that were static html they had the ".html" extension and never went
through the ColdFusion parser.
Give it a try if you like...
-Novak
-----Original Message-----
From: Ben Doom [mailto:[EMAIL PROTECTED]
Sent: Friday, December 19, 2003 8:17 AM
To: CF-Talk
Subject: Re: Write to html file
Um. Use append if you want to add to the very end.
Since you are apparently editing HTML, you'll probably need to read the
file into a variable, stick the URL in the right place, and write the
file back out. Both file actions use CFFILE.
Raymond Camden wrote:
> Yes, just use cffile. If you are adding a text line, then you would
use the
> append action for cffile.
>
_____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

