Ver Mensaje Individual
  #5 (permalink)  
Antiguo 22/07/2005, 10:25
Avatar de Galled
Galled
 
Fecha de Ingreso: marzo-2005
Ubicación: Lima
Mensajes: 254
Antigüedad: 19 años, 1 mes
Puntos: 0
Solo para añadir una cosa:

Esta funcion genera nombres aleatorios, asi simplemente se pone la función y se graban diferentes archivos cada vez:

Código PHP:
function random_str($size

        
$randoms = array( 
                
0123456789ab
                
cdefghijklmn
                
opqrstuvwxy); 

        
srand ((double) microtime() * 1000000); 

        for(
$i 1$i <= $size$i++) 
            
$text .= $randoms[(rand(0,35))]; 

        return 
$text

__________________
Mi blog