Menu Samaritan's Purse

FILESIZE

Gets file size

SYNTAX

filesize ( string $filename ) : int

PARAMETERS

filename

Path to the file.

RETURN

Returns the size of the file in bytes, or FALSE (and generates an error of level E_WARNING) in case of an error.

Note: Because PHP's integer type is signed and many platforms use 32bit integers, some filesystem functions may return unexpected results for files which are larger than 2GB.

EXAMPLES

5

PHP