Query: is_file
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
IS_FILE(3) 1 IS_FILE(3) is_file - Tells whether the filename is a regular fileSYNOPSISbool is_file (string $filename)DESCRIPTIONTells whether the given file is a regular file.PARAMETERSo $filename - Path to the file.RETURN VALUESReturns 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.EXAMPLESExample #1 is_file(3) example <?php var_dump(is_file('a_file.txt')) . " "; var_dump(is_file('/usr/bin/')) . " "; ?> The above example will output: bool(true) bool(false)ERRORS/EXCEPTIONS Upon failure, an E_WARNING is emitted.NOTESNote The results of this function are cached. See clearstatcache(3) for more details. Tip As of PHP 5.0.0, this function can also be used with some URL wrappers. Refer to "Supported Protocols and Wrappers" to determine which wrappers support stat(3) family of functionality.SEE ALSOis_dir(3), is_link(3). PHP Documentation Group IS_FILE(3)
Related Man Pages |
---|
is_readable(3) - php |
filetype(3) - php |
lstat(3) - php |
fileatime(3) - php |
is_writable(3) - php |
Similar Topics in the Unix Linux Community |
---|
search files |
Bash syntax behaviour : [[ vs [ |