Overview

Top  Previous  Next

The Ftp class provides an easy to use client application programming interface for transferring files between a client and FTP (File Transfer Protocol) server and for securely exchanging data with an FTP server using SSL (Secure Sockets Layer).

 

The Ftp class allows for client connections to an FTP server using either FTP,  AUTH TLS, or Implicit SSL.

 

AUTH TLS

 

Client connects to server on port 21 (the default FTP port) and issues a series of commands to establish a secure connection.

 

 

Implicit SSL

 

Client connects to server on port 990 and establishes a secure tunnel using SSL. No additional FTP commands are required to establish a connection.

 

Note

 

Consult your FTP server documentation to see which mode your FTP server supports. Not all FTP servers support secure FTP connections using SSL. Of those that do support SSL some may only support one of the methods AUTH TLS or Implicit SSL.          

 

 

This section is divided into the following topics.

 

Connecting to an FTP server

Setting your directory

Retrieving a directory listing

Uploading files

Downloading files

Remote file operations