Ver Mensaje Individual
  #2 (permalink)  
Antiguo 10/08/2013, 12:59
Avatar de Nemutagk
Nemutagk
Colaborador
 
Fecha de Ingreso: marzo-2004
Ubicación: México
Mensajes: 2.633
Antigüedad: 20 años, 1 mes
Puntos: 406
Respuesta: Agregar fotos sin sobreescribir las que existen

Podría ser algo así....

Código PHP:
Ver original
  1. $image->resize(444,420);
  2.         $w444 = $ruta1.$foto_nombre. '_' .$i. '.' . $extension;
  3.         if (file_exists($w444))
  4.                 $w444 = rand(1000,9999).'_'.$w444;
  5.         $image->save($w444);
  6.  
  7.         $image->resize(54,54);
  8.         $w54 = $ruta2.$foto_nombre. '_' .$i. '.' . $extension;
  9.         if (file_exists($w54))
  10.                 $w444 = rand(1000,9999).'_'.$w54;
  11.         $image->save($w54);
__________________
Listo?, tendría que tener 60 puntos menos de IQ para considerarme listo!!!
-- Sheldon Cooper
http://twitter.com/nemutagk
PD: No contestaré temas vía mensaje personal =)