Welcome Guest, Not a member yet? Register   Sign In
[function.ftp-get]: failed to open stream: Permission denied
#3

[eluser]Jay Logan[/eluser]
Well the user name / password works in FileZilla and it actually works with the FTP library because it reads the directory and loops through the files correctly.

Code:
$config['hostname'] = "www.hostdomain.com";
$config['username'] = "username";
$config['password'] = "password";
$config['debug'] = TRUE;

$this->ftp->connect($config);

$files = $this->ftp->list_files('/tmp/awstats');

unset($files[0]);
unset($files[1]);

foreach ($files as $file) {

$this->ftp->download('/tmp/awstats/'.$file, '/home/localusername/tmp/'.$file, 'ASCII', 0755);

}

$this->ftp->close();


Messages In This Thread
[function.ftp-get]: failed to open stream: Permission denied - by El Forum - 04-12-2010, 12:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB