Ver Mensaje Individual
  #7 (permalink)  
Antiguo 21/03/2004, 05:56
Jordi1
 
Fecha de Ingreso: abril-2003
Mensajes: 656
Antigüedad: 21 años
Puntos: 1
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&iacute;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=$i<=3000;$i++){
 
 if(!
mkdir($to_path.$i0777)) 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