what im sure about is the wrong in these 2 lines
$exec="cp -R ".$INSTALL_PATH."copy/* ".$INSTALL_PATH.trim($url)."/";
exec($exec);
where $INSTALL_PATH is = www/mysite/html/
and i want to copy files from this folder
www/mysite/html/copy
to this file
www/mysite/html/the_new_folder
and trim($url) is = the_new_folder