EnglishРусский  
 Share/Save/Bookmark
 

Ads

Installer and installation software
Commercial and Freeware installers.

ftp.putfile

Stores a file on the FTP server. This method is used to upload the required file from the remote host to the FTP server.

method uint ftp.putfile (
   str srcname,
   str destname,
   uint flag
)

Parameters

srcname The name of the required source file.
destname The name of a file stored on the FTP server.
flag Flags. If the flag of the binary or text mode is not specified, the method makes effort to determine a file type.
$FTP_BINARYA binary file is uploaded.
$FTP_TEXTA text file is uploaded.
$FTP_CONTINUETo proceed with file uploading.

Return value

If the function succeeds, the return value is 1. If the function fails, the return value is 0.

Related links

Source