I can't quite figure out how to add files from a sample directory that I have. I would appreciate some help. I have successfully created a new directory when ever a user inputs their username, but the contents are empty.
Edit: I've created the desired directory structure, just need to include/copy over the pages that I have in the sample template.
<?php
$fileName = "/associate/sample/";
$Name = $_POST['name'];
$thisdir = getcwd();
$folderPath = $thisdir . '/' . $Name;
mkdir($folderPath);
chmod($folderPath, 0777);
file_put_contents (realpath("$fileName"), associate/$Name);
?>