Welcome Guest, Not a member yet? Register   Sign In
Unable to download the specified file. Please check your path. - Bug?
#1

[eluser]Unknown[/eluser]
Hi,

I am using the FTP class and cannot seem to get the correct path to the file, it seems a bit ridiculous.

$this->ftp->download('/world/1.zip', '/public_html/1.zip', 'ascii');
#2

[eluser]TWP Marketing[/eluser]
From the User Guide:
Quote:$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)

I think your local and remote paths are reversed




Theme © iAndrew 2016 - Forum software by © MyBB