ftp.open
Establishes an FTP connection. This method establishes an FTP connection with the server. This method must be called before other methods dealing with the FTP server are called.
method uint ftp.open (
str url,
str user,
str password,
uint flag,
uint notify
)
str url,
str user,
str password,
uint flag,
uint notify
)
Parameters
url | The name or address of the FTP server. | ||||
user | A user name. If the string is empty, anonymous connections are used. | ||||
password | A user password. If the connection is anonymous, your e-mail address is required. | ||||
flag | Connection flags.
| ||||
notify | Function is used to receive notification messages. This parameter can be zero. |
Return value
If the function succeeds, the return value is 1. If the function fails, the return value is 0.
Related links | Source |