rename folder into sub-folder with PHP

前端 未结 4 1957
醉酒成梦
醉酒成梦 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:22

    Why not make sure all parent directories exist first, by making them? mkdir - use the recursive parameter.

提交回复
热议问题