Provide the “test.txt” file type back: rephrase
| <?php echo filetype(“test.txt”); ?> |
The file type of a file is returned by the filetype() method.
Potential values for the return:
Note: This function caches its output. To clear the cache, use clearstatcache().
| filetype(filename) |
|
Parameter |
Description |
|
filename |
Essential. indicates the file to be checked. |
|
Return Value: |
Upon success, one of the file types; upon failure, FALSE |
|
PHP Version: |
4.0+ |
Give back the kind of file for /images/:
| <?php echo filetype(“/images/”); ?> |