i have folder www/mywebsite/html/copy
in this file there is alot of files and folders
i want to open new folder here
www/mywebsite/html/the_name_of_new_folder
and copy what inside copy to the new folder
this is my code
$dir=$INSTALL_PATH.trim($url);
mkdir($dir, 0777);
$exec="cp -R ".$INSTALL_PATH."copy/* ".$INSTALL_PATH.trim($url)."/";
exec($exec);
$exec="chmod -R a+Xrw ".$INSTALL_PATH.trim($url)."/";
exec($exec);
where is
$INSTALL_PATH = www/mywebsite/html/
and trim($url) = the_name_of_new_folder
...............
it is not working at all
it open the folder but it be empty and i didnt get errors