我正在使用 php 的 ftp_rename 函数,并在重命名文件的扩展名以指示它已被下载时收到权限被拒绝错误。
为了确保这不是 php 配置问题,我尝试手动 ftping。这是我难住的地方。
ftp> ls
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
-rwxrwxrwx 1 1000 1000 179 Oct 18 16:12 File_20101018041300.csv
226 Directory send OK.
ftp> rename File_2010101804300.csv File_20101018041300.csv.downloaded
550 Permission denied.
Run Code Online (Sandbox Code Playgroud)
知道发生了什么吗?