is_file

(PHP 3, PHP 4 , PHP 5)

is_file -- Indica si el archivo es un archivo regular

Descripción

bool is_file ( string nombre_archivo)

Devuelve TRUE si el archivo con el nombre dado existe y es un archivo regular.

Nota: Los resultados de esta función son guardados. Consultar clearstatcache() para más detalles.

Sugerencia: As of PHP 5.0.0 this function can also be used with some URL wrappers. Refer to Apéndice L for a listing of which wrappers support stat() family of functionality.

Vea también is_dir() y is_link().