rename folder into sub-folder with PHP

前端 未结 4 1951
醉酒成梦
醉酒成梦 2021-02-19 09:50

I\'m trying to move a folder by renaming it. Both the test1 and test2 folders already exist.

rename(
 \"test1\",
 \"test2/xxx1/xxx2\"
);

The e

4条回答
  •  野的像风
    2021-02-19 10:19

    I think test2/xxx1 would need to exist, so you'd need to use mkdir before you move it.

提交回复
热议问题