Page 1 of 1

Renaming a directory

Posted: Fri Sep 27, 2002 9:52 pm
by xLechugasx
How can I rename a directory?

Posted: Fri Sep 27, 2002 10:13 pm
by mydimension
i don't believe there is a php function to do this but you can use shell_exec() to execute a command at the shell level
for Win/dos: shell_exec("rename dir1 dir2")
for *nix: shell_exec("mv dir1 dir2") (<-- i think. could someone double check to make sure that is the right *nix syntax?)