CodeIgniter Forums
FTP Library problems - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: FTP Library problems (/showthread.php?tid=28921)



FTP Library problems - El Forum - 03-25-2010

[eluser]Fatih[/eluser]
I have some problems with CodeIgniter FTP Class. First of all, I upload my binary documents to my host but all files are corrupt. Here is my config data:
Code:
$config['hostname'] = 'ftp.myftpsite.com';
$config['username'] = 'username';
$config['password'] = 'pass';
$config['port']     = 21;
$config['passive']  = TRUE;
config['debug']    = TRUE;

When I change passive mode FALSE, the result is the same. Although file size is nearly same but files are corrupt.

Another problem, when I use Phil's ftp download codes, I couldn't download any file due to local file path. Shall the local path in user computer? I indicated as downloaded file name only (tempo.txt etc). But I have an error about permission (Message: ftp_get(tempo.txt) [function.ftp-get]: failed to open stream: Permission denied).


FTP Library problems - El Forum - 03-26-2010

[eluser]Fatih[/eluser]
After some hours, I realized that files are not corrupt. Just, downloaded as ASCII format by Filezilla. When I changed to BINARY format, everything is ok.

But, I have still problems with FTP download.