home *** CD-ROM | disk | FTP | other *** search
- <!--- This view-only example shows the use of CFFTP --->
- <HTML>
- <HEAD>
- <TITLE>CFFTP Example</TITLE>
- </HEAD>
-
- <BASEFONT FACE="Arial, Helvetica" SIZE=2>
- <BODY bgcolor="#FFFFD5">
-
- <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 CONNECTION="myConnection"
- USERNAME="anonymous"
- PASSWORD="userName@company.com"
- SERVER="ftp.company.com"
- ACTION="Open"
- STOPONERROR="Yes">
-
- <P>Did it succeed? <CFOUTPUT>#CFFTP.Succeeded#</CFOUTPUT>
-
- <CFFTP CONNECTION="myConnection"
- ACTION="LISTDIR"
- STOPONERROR="Yes"
- NAME="ListDirs"
- DIRECTORY="/">
- <P>
-
- <HR>FTP Directory Listing:
- <P>
- <CFTABLE QUERY="ListDirs" HTMLTABLE="Yes" COLHEADERS="Yes">
- <CFCOL HEADER="<B>Name</B>" TEXT="#name#">
- <CFCOL HEADER="<B>Path</B>" TEXT="#path#">
- <CFCOL HEADER="<B>URL</B>" TEXT="#url#">
- <CFCOL HEADER="<B>Length</B>" TEXT="#length#">
- <CFCOL HEADER="<B>LastModified</B>"
- TEXT="Date(Format#lastmodified#)">
- <CFCOL HEADER="<B>IsDirectory</B>" TEXT="#isdirectory#">
- </CFTABLE>
-
- <P>Close the connection:
- <CFFTP CONNECTION="myConnection"
- ACTION="close"
- STOPONERROR="Yes">
-
- <P>Did it succeed? <CFOUTPUT>#CFFTP.Succeeded#</CFOUTPUT>
- --->
-
- </BODY>
- </HTML>
-
-