#PHP#move_uploaded_file()失败,failed to open stream: Permission denied in

使用move_uploaded_file接收curl的post文件时一直出现问题


#PHP#move_uploaded_file()失败,failed to open stream: Permission denied in_第1张图片
图片.png

move_uploaded_file failed to open stream,Permission denied in
很肯定是文件夹权限问题,但不确定是tmp文件夹权限出错还是html下文件夹出错
更改权限/www/html也不行,
chmod -R 777 /www/html 后仍然报错
后发现,/www/html/upload文件夹权限仍未变化,依然无法读写,太坑了
手动更改upload权限777后正常
chmod -R 777 /www/html/upload

你可能感兴趣的:(#PHP#move_uploaded_file()失败,failed to open stream: Permission denied in)