Ver Mensaje Individual
  #2 (permalink)  
Antiguo 07/09/2013, 08:58
PHPeros
Colaborador
 
Fecha de Ingreso: septiembre-2013
Ubicación: España
Mensajes: 3.648
Antigüedad: 10 años, 6 meses
Puntos: 578
Respuesta: Nombre irrepetible para imágenes

Existe una funcion para comprobar si un archivo existe:
Código PHP:
Ver original
  1. if (file_exists('url')){
  2. // Rename
  3. $_FILES['archivo']['name'] .= rand();
  4. }