The ftp_fget() function gets a file from the FTP server and saves it to an open file.
This function returns TRUE on success and FALSE on failure.
|ftp_connection||Required. Specifies the FTP connection to use|
|local||Required. Specifies the open file to paste into|
|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. Default is 0|
This example copies the text from "source.txt" into "target.txt":
Your message has been sent to W3Schools.