is_file

 bool is_file ( string $filename ) 

説明

Tells whether the given file is a regular file.

戻り値

Returns TRUE if the filename exists and is a regular file, FALSE otherwise. Note: Because PHP's integer type is signed and many platforms use 32bit integers, some filesystem functions may return unexpected results for files which are larger than 2GB.