Hey all,
I have a folder called 'templates' in my root dir (../templates/). When a PHP form is submitted I want to copy a folder out of 'templates' called 'template1' (../templates/template1) and paste it into the root directory but with the new name of 'username123'.
How can I copy, rename and paste a folder from one dir to another using PHP?
I have read the manuals for copy and rename but some snippets (non working examples are cool too) would be really useful.
Thanks!