Welcome Guest, Not a member yet? Register   Sign In
FTP Library problems

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:
$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).

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.

Theme © iAndrew 2016 - Forum software by © MyBB