PHP filesize() Function
❮ PHP Filesystem ReferenceDefinition and Usage
The filesize() function returns the size of a file.
Note: The result of this function is cached. Use clearstatcache() to clear the cache.
Syntax
filesize(filename)
Parameter Values
Parameter | Description |
---|---|
filename | Required. Specifies the path to the file to check |
Technical Details
Return Value: | The file size in bytes on success, FALSE on failure |
---|---|
PHP Version: | 4.0+ |
❮ PHP Filesystem Reference