Ver Mensaje Individual
  #6 (permalink)  
Antiguo 29/08/2008, 08:14
Avatar de DooBie
DooBie
 
Fecha de Ingreso: septiembre-2004
Mensajes: 1.101
Antigüedad: 19 años, 7 meses
Puntos: 71
Respuesta: Selección Aleatoria Archivos Directorio

algo rapido y sencillo:
en lugar del print, añades los ficheros a un array
Código PHP:
$ficheros[] = $file
cuando salgas del while, haces esto:
Código PHP:
print_r(array_rand($ficheros5)); 
y listo