Ftpopen()
Creates a new connection to the FTP server detailed. The object passed back is then used to interact with the server through the other FTP functions
Usage
OBJECT = Ftpopen(
server,
port,
username,
password,
passive,
timeout,
stoponerror
)
Argument | Summary |
---|---|
server | the ftp server to connect to |
port | port of the server to connect to. defaults to 21 [optional] |
username | username to login to the ftp [optional] |
password | password of user account to the ftp server [optional] |
passive | sets whether this is passive or not. defaults to false [optional] |
timeout | sets the timeout in seconds to use when reading from the data connection. default 30seconds [optional] |
stoponerror | if something goes wrong, throw an exception. defaults to true [optional] |
Calling
Supports named-parameter calling allowing you to use the function like:
Ftpopen( server=?, port=?, username=?, password=?, passive=?, timeout=?, stoponerror=? );
Supports passing parameters as a structure using ArgumentCollection:
Ftpopen( ArgumentCollection={ server : ?, port : ?, username : ?, password : ?, passive : ?, timeout : ?, stoponerror : ? } );