CodeIgniter Forums
FTP class - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forum-21.html)
+--- Thread: FTP class (/thread-56650.html)



FTP class - El Forum - 01-09-2013

[eluser]Unknown[/eluser]
please help

Code:
$this->ftp->rename('/thumbdragon.gif', '/asd.gif');
works fine
but
Code:
$this->ftp->download('/asd.gif', 'C:/asd.gif', 'ascii');
respond with error cannot download, check the path

Same upload(), download()

mirror() throws no error and do nothing

why do I get this error?


FTP class - El Forum - 01-09-2013

[eluser]PhilTem[/eluser]
From the user's guide
Quote:$this->ftp->download()
Returns FALSE if the download does not execute successfully (including if PHP does not have permission to write the local file)

And I'm pretty damn sure that your PHP does not have permissions to write on C:/ Wink


FTP class - El Forum - 01-09-2013

[eluser]Unknown[/eluser]
Thanks.
It was for image gallery purpose and it works fine on localhost. Anyway I found image CRUD.