rename folder into sub-folder with PHP
- by Workoholic
Hi. I'm trying to move a folder by renaming it. Both the test1 and test2 folders already exist.
rename(
"test1",
"test2/xxx1/xxx2"
);
The error I get is: rename(...): No such file or directory
I assume this is because the directory "xxx1" does not exist.
How can I move the test1 directory anyway?