Welcome Guest, Not a member yet? Register   Sign In
FTP Download: File permissions Question
#1

[eluser]vc27[/eluser]
I've been working to get a simple download to run from one server to another using the ftp class. I think I have my file permissions a little off somewhere, but I'm not sure.

I'll try to explain the scenario, it's pretty simple actually.

Both servers have the file "test-file.txt". The local server needs to download an updated version of the file from the remote server.

I've confirmed that my ftp connection is solid and have used the "list_files" method to confirm the file exists. After confirmation of file existence I run the "download" method.

The servers are virtually identical:
$this->ftp->download( '/home/username/public_html/test/test.txt', '/home/username/public_html/test/test.txt', 'auto' );

The result is that the existing file on the local server is deleted, and the process ends there with an error. "Unable to download the specified file. Please check your path."

After seeing that error I check my path and since I've confirmed the path with list_files I feel like it may be a permissions issue.

I'm fairly new to the concepts of transferring files with php so any suggestion or links would be great.


Messages In This Thread
FTP Download: File permissions Question - by El Forum - 12-12-2012, 12:52 PM
FTP Download: File permissions Question - by El Forum - 12-13-2012, 02:00 AM
FTP Download: File permissions Question - by El Forum - 12-13-2012, 07:12 AM
FTP Download: File permissions Question - by El Forum - 12-13-2012, 09:32 PM
FTP Download: File permissions Question - by El Forum - 12-14-2012, 06:38 AM



Theme © iAndrew 2016 - Forum software by © MyBB