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

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -