Adobe COLDFUSION 9 Manual page 272

Developing applications
Hide thumbs Also See for COLDFUSION 9:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Developing CFML Applications
directoryExists
imageWrite
Supported tags
All
cffile
actions
cfftp
Limitations
• The following tags are not supported:
cfpdf
cfpdfform
• The following functions are not supported:
FileSetAccessMode
FilesSetAttribute
does not accept Amazon S3 object as source.
cfzip
• When S3 object is used as output for
period expired without completion of <exe>
• To use the function
fileMove,
you cannot move Amazon S3 objects across buckets or to other file systems.
Working with in-memory files
Memory-based virtual file system speeds up the processing of transient data. In-memory files are not written to disk
and are saved on RAM. They function similar to disk files but perform faster.
In ColdFusion, in-memory files help you to simplify the execution of dynamic code. In-memory files are supported
across almost all tags and functions that take file or directory as input or output.
You use in-memory files in the same manner as files on disk, but with a prefix
RAM. For example,
ram:///a/b/dynamic.cfm.
Writing and executing dynamic CFM files
The following syntax explains how to write CFM data in to an in-memory file:
<cffile action="write" output="#cfml#"
file="ram:///filename.cfm"/>
The following sample syntax explains how to use the in-memory CFM file:
• For tags that take logical path, define mapping in Administrator. Execute in-memory CFM pages using the
tag:
cfinclude
<cfinclude template="/inmemory/filename.cfm">
Create a mapping for
ram:///
points to
.
ram:///
• For tags that take absolute path, specify the syntax as provided in the following example:
<cffile action="append" file="ram:///a/b/dynamic.cfm" output="I'm appending">
Note: You cannot have Application.cfm as an in-memory file. If you have one, it is ignored.
directoryList
imageWriteBase64
All
cfdirectory
actions
(except rename)
cfimage
that sets attributes of a file in Linux/UNIX
that sets the attributes of a file in Windows
outputfile
the source and destination objects must have the same bucket name. That is,
so that it can be used in the tags. In this example,
Last updated 8/5/2010
imageNew
isImageFile
cfdocument
cfloop
attribute of
tag, it results in an error
cfexecute
. It also results in a NullPointerException at server console.
ram:///
/inmemory
imageRead
isPDFFile
cffeed
All
cfimage
actions
Timeout
to indicate that they reside on
is the mapping that
267

Advertisement

Table of Contents
loading

Table of Contents