home *** CD-ROM | disk | FTP | other *** search
- <!--- 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="youremail@email.net"
- 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"
- CONNECTION="my_query">
- <CFOUTPUT query="ListFiles">
- #name#<BR>
- </CFOUTPUT>
-
- <P>Close the connection:
- <CFFTP ACTION="close"
- CONNECTION="My_query"
- STOPONERROR="Yes">
-
- <P>Did it succeed? <CFOUTPUT>#CFFTP.Succeeded#</CFOUTPUT>
- --->
- </BODY>
- </HTML>
-