Tema: archivos php
Ver Mensaje Individual
  #2 (permalink)  
Antiguo 13/06/2002, 01:37
Herminio Heredia San
 
Fecha de Ingreso: septiembre-2001
Ubicación: Monterrey
Mensajes: 663
Antigüedad: 22 años, 7 meses
Puntos: 6
Re: archivos php

file_exists(string filename)

ejemplo:
Código:
$ruta = "/home/usurio/archivo.txt";
if( file_exists($ruta) )
{
  //hago algo
}
else
{
  echo "Lo siento el archivo no existe";
}
referencia:
<a href='ir.asp?http://www.php.net/manual/en/function.file-exists.php' target='_blank'>http://www.php.net/manual/en/function.fi...</a>