apache - PHP - On Form Submit duplicate folder with new name -
is possible php can create new directory files inside.
for example when php code activated duplicates folder in server directory it's own name?
i appreciate if provide start of code need.
tom
try this:
if(!file_exists('foldername')) { mkdir('foldername', '0777', true); $path = realpath('foldername'); $file = fopen($path . "/file1.txt", 'w') or die("could not open file"); }
Comments
Post a Comment