The ftp_nb_get() function gets a file from the FTP server and saves it to a local file.
This function returns one of the following values:
Unlike ftp_get(), this function retrieves the file asynchronously. This means your program can perform other operations while the file is being downloaded.
|ftp_connection||Required. Specifies the FTP connection to use|
|local||Required. Specifies where to save the file. If this file already exists, it will be overwritten|
|remote||Required. Specifies the path of the file to copy from|
|mode||Required. Specifies the transfer mode. The possible values
|resume||Optional. Specifies where in the remote file to start copying|
This example copies the text from "source.txt" into "target.txt":
Your message has been sent to W3Schools.