The ftp_get() function gets a file from the FTP server and saves it to a local file.
This function returns TRUE on success and FALSE on failure.
|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":
The output of the code above will be:
Your message has been sent to W3Schools.