How can I download folder from some ftp server into my server home directory and give to that directory rights (like all files in this directory have all or no rights)?
Not using special libraries if it is possible.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The FTP server must support passive mode (ref) and your web server must have
allow_url_fopenset in the php.ini (ref).To give rights use
chmod('./file.txt', 0777)or whatever rights you need.