Determine if a file exists.
<?php ?> |
The file_exists() function checks if a file or directory exists.
Note: The result of this function is cached. Use clearstatcache() to clear the cache.
file_exists(path) |
Parameter |
Description |
path |
Mandatory. Specifies the path to the file or directory to check. |
Return Value: |
Returns TRUE if the file or directory exists, or FALSE if it does not. |
PHP Version: |
4.0+ |