Copy and rename a folder in PHP
===

Hi I need to copy a folder in the user registration and will track the new user name in a folder،
I found this code on the server but does not work


    		//Bulder Blog Folder
		$Default='blog\Default';
		$New='blog\\';
		$Blog=$New.$BlogName;
		exec("xcopy $Default $Blog /e/i", $a, $a1); 

 