Chapter 1: ColdFusion Tags
65
RETRYCOUNT
Optional. Number of retries until failure is reported. Default is one (1).
STOPONERROR
Optional. Yes or No. When Yes, halts all processing and displays an appropriate
error. Default is Yes.
When No, three variables are populated:
•
CFFTP.Succeeded – Yes or No.
•
CFFTP.ErrorCode – Error number
•
CFFTP.ErrorText – Message text explaining error type
PASSIVE
Optional. Boolean indicating whether to enable passive mode. By default, passive
mode is disabled.
Example
<!--- This view-only example shows the use of CFFTP --->
<HTML>
<HEAD>
<TITLE>CFFTP Example</TITLE>
</HEAD>
<BODY>
<H3>CFFTP Example</H3>
<P>CFFTP allows users to implement File Transfer Protocol
operations. By default, CFFTP caches an open connection to
an FTP server.
<P>CFFTP operations are usually of two types:
<UL>
<LI>Establishing a connection
<LI>Performing file and directory operations
</UL>
<P>This view-only example opens and verifies a connection,
lists the files in a directory, and closes the connection.
<!---
<P>Open a connection
<CFFTP ACTION="open"
USERNAME="anonymous"
CONNECTION="My_query"
PASSWORD="[email protected]"
SERVER="ftp.tucows.com"
STOPONERROR="Yes">
<P>Did it succeed? <CFOUTPUT>#CFFTP.Succeeded#</CFOUTPUT>
<P>List the files in a directory:
<CFFTP ACTION="LISTDIR"
STOPONERROR="Yes"
NAME="ListFiles"
DIRECTORY="lib"
Summary of Contents for COLDFUSION 4.5-CFML LANGUAGE
Page 1: ...Allaire Corporation CFML Language Reference ColdFusion 4 5...
Page 207: ...Chapter 1 ColdFusion Tags 183 CFCATCH CFTRY BODY HTML...
Page 224: ...200 CFMLLanguageReference CFOUTPUT P Text within CFOUTPUT is always shown CFOUTPUT BODY HTML...
Page 336: ...312 CFMLLanguageReference CFIF BODY HTML...
Page 404: ...380 CFMLLanguageReference DE It is morning CFOUTPUT P BODY HTML...
Page 413: ...Chapter 2 ColdFusion Functions 389 Customer BalanceDue BR CFOUTPUT CFIF BODY HTML...
Page 483: ...Chapter 2 ColdFusion Functions 459 CFOUTPUT CFLOOP BODY HTML...
Page 584: ...560 CFMLLanguageReference...
Page 594: ...570 CFMLLanguageReference...