if you move a file from one place to another place,such as
rename("c:/test1.txt","d:/test2.txt");
will move c:/text1.txt and rename it to test2.txt
but you can't use it to rename a directory
such as:
rename("c:/testdir1","d:/testdir2"); will return a error message