php - directadmin 使用 php 将文件上传到另一个用户目录
问题描述
我正在用php上传文件。源目录是
/home/asghar/domain/asghar.com/public_html/code.php
上传目录为
/home/akbar/domain/akbar.com/public_html/assets/data
但我的代码中出现此错误:
Unable to create the "/home/akbar/domain/akbar.com/public_html/assets/data" directory.
我试过这个解决方案:
chmod 777 /home/akbar/domain/akbar.com/public_html/assets/data
chown asghar:asghar /home/akbar/domain/akbar.com/public_html/assets/data
解决方案
推荐阅读
- sockets - 验证服务是否连接到 pod?
- c# - 读取或将 17 位时间戳转换为日期时间格式 C#
- vespa - 子组分布键很奇怪
- android-studio - gradle 项目同步失败。基本功能
- c++ - 为什么在不抛出 C++ 的情况下捕获异常?
- java - SharedPreferences android.content.Context.getSharedPreferences(java.lang.String, int)
- swiftui - NavigationLink 标记和选择未按预期工作
- angular - Angular EventEmitter 不适用于某些延迟加载的模块
- javascript - 如何打开从 axios 收到的 csv 文件在新窗口中获取响应
- javascript - 无法解构“this.props.data”的属性“聊天”,因为它未定义