更新时间:2023-11-22 20:17:22
正如其他人已经指出的那样,您正在寻找的PHP函数是 rename
,但是您不能通过http://
URL重命名文件(至少在PHP中不是这样-正如@Artefacto所说,WebDAV可以做到这一点.)
As others already point out, the PHP function you're looking for is rename
, but you can't rename a file through a http://
URL (At least not in PHP - As @Artefacto says, WebDAV can do this.).
您将需要指定正确的文件系统路径.
You will need to specify a proper filesystem path.