View Single Post
Old 03-09-2022, 10:31 PM  
Publisher Bucks
Confirmed User
 
Industry Role:
Join Date: Oct 2018
Location: New Orleans, Louisiana. / Newcastle, England.
Posts: 1,123
Quote:
Originally Posted by ZTT View Post
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.
__________________
SOMETHING EXTREME IS COMING SOON!
Publisher Bucks is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote