Summary


ColdFusion provides comprehensive server-side file management using <cffile>, <cfcontent>, and <cfdirectory>. Standard file operations such as move, copy, and delete can be performed using <cffile>. <cffile> can create or write new files and append to existing ones. The <cffile> tag reads string and binary files into ColdFusion variables. <cffile> is required to write uploaded files to disk at the end of an HTTP post. <cfcontent> can deliver files of different MIME types from the server to the user's Web browser. <cfdirectory> manipulates and reads directory listings on the server.

<cfregistry> gives you complete access to the Registry system information repository. <cfexecute> allows programmers to spawn processes from the command line of the server.

Sample Questions

1:

Access to which of the following tags can be restricted in ColdFusion Administrator? (select four)

  1. <cffile>

  2. <cfcontent>

  3. <cfdirectory>

  4. <cfregistry>

  5. <cfquery>

  6. <cfparam>

2:

Which tag would you use to obtain the size of a file?

  1. <cffile>

  2. <cfcontent>

  3. <cfdirectory>

  4. <cfsize>

3:

Which value of the enctype attribute of <form> is required to enable file uploads from the browser?

  1. enctype="text/plain"

  2. enctype="multipart/form-data"

  3. enctype="application/x-www-form-urlencoded"

  4. enctype is not a required attribute.



Macromedia ColdFusion MX 7 Certified Developer Study Guide
Macromedia ColdFusion MX 7 Certified Developer Study Guide
ISBN: 0321330110
EAN: 2147483647
Year: 2004
Pages: 389
Authors: Ben Forta

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net