Quote:
Originally Posted by ZTT
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);
?>
|
Yes, but I can't use that as part of an admin backend without editing it every single time.
I need a html form to be able to name the new directory which also needs to upload that file based on an existing template, Im not having 8 or so people who use this system be able to log into the server to do that manually each time, it defeats the purpose of having a backend system to do it
It also means I need to make sure the people using the php you suggested, are competant when it comes to logging onto the server and arent going to fuck anything thats already in place, up.