Last active
December 17, 2015 07:49
-
-
Save seanmcn/5575589 to your computer and use it in GitHub Desktop.
Simple script to create any number of files in a folder.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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