Syntax
| bool file_exists ( string $filename ); |
Definition and Usage
Checks whether a file or directory exists.
Paramters
| Parameter | Description |
|---|---|
| filename | Path to the file or directory. |
Return Value
Returns TRUE if the file or directory specified by filename exists; FALSE otherwise.
Example
Following is the usage of this function:
<?php |