Solution to the problem that ftp_put in PHP cannot upload files (picture and text)

WBOY
Release: 2016-07-25 08:57:21
Original
2488 people have browsed it
  1. #chown -R www-data.www-data /var/www/tmp/
  2. #chmod -R 777 /var/www/tmp/
Copy the code

Upload again, successful.

At this point, the problem of not being able to upload files using ftp_put in php has been solved.

The key point of this issue: Permissions must be granted to temporarily upload the directory.



source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template