Home >Backend Development >PHP Tutorial >Solution to the problem that ftp_put in PHP cannot upload files (picture and text)

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

WBOY
WBOYOriginal
2016-07-25 08:57:212500browse
  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.



Statement:
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