filesize
Get file size
The filesize()
function returns the size of the specified file.
If successful, the number of bytes of the file size is returned. If it fails, false is returned and an E_WARNING-level error is generated.
<?php echo filesize ( "test.txt" ) ; ?>
Output:
20
filesize ( filename )
parameter | describe |
---|---|
filename | Required. Specify documents to be inspected. |