Con este simple codigo puedes hacerlo en hatml
Código PHP:
<?
$to_path = ""; //ruta al directorio donde se crearan las carpetas con barra finas '/'
$html="<html>\n"
."<head>\n"
."<title>Documento sin título</title>\n"
."<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">\n"
."</head>\n"
."<body>\n"
."</body>\n"
."</html>\n";
for($i=0 ; $i<=3000;$i++){
if(!mkdir($to_path.$i, 0777)) echo "<br> No se pudo crear la carpeta ".$to_path.$i;
$fa=fopen($to_path.$i."/index.htm", "w+");
fwrite($fa,$html);
fclose($fa);
} // fin for
}
?>
espero que te sirva