beh come parametri puoi mettere path..

es

rename("/tmp/tmp_file.txt", "/home/user/login/docs/my_file.txt");

(http://ch2.php.net/rename , http://ch2.php.net/unlink )