
Managing Custom Tags
189
Encoding custom tags
You can use the command-line utility
cfencode
to encode any ColdFusion
application page. By default, the utility is installed in the /cfusion/bin directory. It is
especially useful for securing custom tag code before distributing it.
The
cfencode
tag uses the following syntax:
cfencode
infile outfile
[/r /q] [/h "message"] /v"2"
The following table describes the options:
Note
While it is possible to encode binary files with
cfencode
, it is not recommended.
Option
Description
input file
Name of the file you want to encode.
cfencode
does not process an
encoded file.
output file
Path and filename of the output file.
Warning: If you do not specify an output filename, a warning message
asks if you want to continue, in which case the encoded file will
overwrite the source file.
/r
Recursive, when used with wildcards, recurses through subdirectories
to encode files.
/q
Suppresses warning messages.
/h
Header, allows custom header to be written to the top of the encoded
file(s).
/v
Required parameter that allows encoding using a specified version
number. Use "1" for pages you want to be able to run on ColdFusion
3.x. Use "2" for pages you want to run strictly on ColdFusion 4.0 and
later.
Содержание COLDFUSION 5-DEVELOPING
Страница 1: ...Macromedia Incorporated Developing ColdFusion Applications MacroMedia ColdFusion 5 ...
Страница 58: ...38 Chapter 3 Querying a Database ...
Страница 134: ...114 Chapter 7 Updating Your Database ...
Страница 210: ...190 Chapter 10 Reusing Code ...
Страница 232: ...212 Chapter 11 Preventing and Handling Errors ...
Страница 238: ...218 Chapter 12 Using the Application Framework ...
Страница 262: ...242 Chapter 12 Using the Application Framework ...
Страница 278: ...258 Chapter 13 Extending ColdFusion Pages with CFML Scripting ...
Страница 320: ...300 Chapter 15 Indexing and Searching Data ...
Страница 336: ...316 Chapter 16 Sending and Receiving E mail ...
Страница 374: ...354 Chapter 18 Interacting with Remote Servers ...