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

Messages In This Thread
FTP Library problems - by El Forum - 03-25-2010, 08:14 AM
FTP Library problems - by El Forum - 03-26-2010, 01:12 AM

Theme © iAndrew 2016 - Forum software by © MyBB