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

[eluser]Aken[/eluser]
Maybe this note on the PHP.net ftp_get() page (which the download() method utilizes) may help:

Quote:Please note that the "The remote file path." does not necessarily mean the full server path. If you have created normal user accounts that has been locked into the website folder, you need to enter the remainder of the path.

Example:
If you are getting an image that is located in:
/home/website/public_html/images/image.jpg

And you have locked the user into: /home/website/

Then the path you should pass along when fetching the file is:
public_html/images/image.jpg


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