Give back the size of the “test.txt” file:rephrase
| <?php echo filesize(“test.txt”); ?> |
The size of a file is returned by the filesize() method.
Note: This function caches its output. To clear the cache, use clearstatcache().
| filesize(filename) |
|
Parameter |
Description |
|
filename |
Essential. gives the location of the file to be checked. |
|
Return Value: |
If successful, the file size in bytes; if unsuccessful, FALSE |
|
PHP Version: |
4.0+ |