You're not writing anything so obviously nothing will be written.
If all you're doing is copying an existing template to a new directory then:
<?php
$mytemplate="mytemplate.txt";
$newfolder="new";
mkdir($newfolder);
copy($mytemplate,$newfolder."/".$mytemplate);
?>
__________________
__________________
|