Ver Mensaje Individual
  #4 (permalink)  
Antiguo 11/10/2013, 02:18
Avatar de Triby
Triby
Mod on free time
 
Fecha de Ingreso: agosto-2008
Ubicación: $MX->Gto['León'];
Mensajes: 10.106
Antigüedad: 15 años, 8 meses
Puntos: 2237
Respuesta: Alguien tiene un contador de archivos muy sencillo

Ejemplito sencillo:
Código PHP:
Ver original
  1. $carpeta = '/home/var/sitio/public_html/carpeta';
  2. $archivo = 'nombre_de_archivo_obtenido_por_get_o_post';
  3.  
  4. if(file_exists("$carpeta/$archivo")) {
  5.       echo 'Sí existe el archivo, yeah!!!';
  6. } else {
  7.       echo 'Lo siento, no existe el archivo :-(';
  8. }
__________________
- León, Guanajuato
- GV-Foto