EnglishРусский  
The project is closed! You can look at a new scripting language. It is available on GitHub.
Also, try our open source cross-platform automation software.

Ads

Installer and installation software
Commercial and Freeware installers.

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
)

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.
$FTP_ANONYMAnonymous connection.
$FTP_PASVEstablishes a connection in passive mode.
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