From 7ec3650749b2c4baf1600bf09fdf3e41f06d87d1 Mon Sep 17 00:00:00 2001 From: Derek Jones Date: Mon, 22 Mar 2010 11:11:30 -0500 Subject: added documentation for philsturgeon's submission of download() for the FTP library --- user_guide/libraries/ftp.html | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'user_guide/libraries/ftp.html') diff --git a/user_guide/libraries/ftp.html b/user_guide/libraries/ftp.html index 10acdcdab..b5194e8ad 100644 --- a/user_guide/libraries/ftp.html +++ b/user_guide/libraries/ftp.html @@ -188,6 +188,19 @@ Example:

Permissions are available if you are running PHP 5 and can be passed as an octal value in the fourth parameter.

+

$this->ftp->download()

+ +

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'); + +

Mode options are:  ascii, binary, and auto (the default). If +auto 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)

+ +

$this->ftp->rename()

Permits you to rename a file. Supply the source file name/path and the new file name/path.

-- cgit v1.2.3-24-g4f1b