Skip to content

Instantly share code, notes, and snippets.

@seanmcn
Last active December 17, 2015 07:49
Show Gist options
  • Save seanmcn/5575589 to your computer and use it in GitHub Desktop.
Save seanmcn/5575589 to your computer and use it in GitHub Desktop.
Simple script to create any number of files in a folder.
<?php
$count = 1;
while($count <= 20) {
$path = "D:\\web\\www\\website\\folder\\";
$filename = $count.".html";
$file = fopen($path.$filename, "w");
echo $filename." has been created! <br />";
$count++;
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment