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

[eluser]Phil Sturgeon[/eluser]
Code:
function download($rempath, $locpath, $mode = 'auto')

I think you are looking at the ftp_get() parameters and not the parameters for the FTP::download() method.

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

Something like that should do the trick.


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



Theme © iAndrew 2016 - Forum software by © MyBB