I need a php script that will create other php page templates based off of files in a folder. For example: Folder1 contains file-name1.txt file-name2.txt file-name3.txt I need the script to create the corresponding .php files on the fly into Folder2 I would like to click a button and have it create inside of Folder2. So the contents of Folder2 would be: file-name1.php file-name2.php file-name3.php I also need the .php file that is created to be based off of an existing template. file-name1.php would be: <?php include("inc/staticfile.php"); ?> <?php include("inc/staticfile1.php"); ?> <?php include("inc/staticfile2.php"); ?> <?php include("folder1/file-name1.txt"); ?> PHP: file-name2.php would be: <?php include("inc/staticfile.php"); ?> <?php include("inc/staticfile1.php"); ?> <?php include("inc/staticfile2.php"); ?> <?php include("folder1/file-name2.txt"); ?> PHP: file-name3.php would be: <?php include("inc/staticfile.php"); ?> <?php include("inc/staticfile1.php"); ?> <?php include("inc/staticfile2.php"); ?> <?php include("folder1/file-name3.txt"); ?> PHP: And so on until all of the files from within Folder 1 were created in Folder 2. Quick payment via paypal. Thanks