Use CFHTTP, which can save directly to a file.

Jim


-----Original Message-----
From: Ryan <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Monday, August 07, 2000 4:18 PM
Subject: How to pipe CF code to a file?


>Hello. I need to be able to execute a set of CF tags but
>send the output to a file not to the web browser. An entire
>HTML page, not just some data.
>
>So, for example, I have process.cfm, full of CF tags and includes,
>etc, how can I execute this and pipe it to a file?
>
>I tried a couple of things:
>
><CFFILE ACTION=write
FILE="/home/WWW-data/siouxland/homepage/rps/output.cfm"
>OUTPUT="<CFINCLUDE TEMPLATE='../calendar.cfm'>">
>This just puts the literal 'CFINCLUDE...' in there.
>
>Also tried reading in and writing back out with CFFILE, just
>makes a copy of the file of course. What I need is to be able
>to 'eval' the code in the variable before writing it back out.
>The CF evaluate tag does not work, it is really only made to
>evaluate an expression, not a chunk of code like the perl eval
>command.
>
>Thanks for any help.
>
>Ryan

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to