Ver Mensaje Individual
  #5 (permalink)  
Antiguo 11/10/2013, 03:38
Avatar de jor_0203
jor_0203
 
Fecha de Ingreso: octubre-2011
Ubicación: mexico
Mensajes: 760
Antigüedad: 12 años, 6 meses
Puntos: 8
Respuesta: Alguien tiene un contador de archivos muy sencillo

Cita:
Iniciado por Triby Ver Mensaje
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. }
lo voy a probar