download($rempath, $locpath[, $mode = 'auto'])
Parameters: |
|
---|---|
Returns: |
TRUE on success, FALSE on failure |
Return type: |
bool |
Downloads a file from your server. You must supply the remote path and the local path, and you can optionally set the mode. Example:
$this->ftp->download('/public_html/myfile.html', '/local/path/to/myfile.html', 'ascii');
If ‘auto’ mode is used it will base the mode on the file extension of the source file.
Returns FALSE if the download does not execute successfully (including if PHP does not have permission to write the local file).
Please login to continue.