filesize

(PHP 3, PHP 4 )

filesize -- Gets file size

Description

int filesize ( string filename)

Returns the size of the file in bytes, or FALSE in case of an error.

Замечание: The results of this function are cached. See clearstatcache() for more details.

Замечание: This function will not work on remote files as the file to be examined must be accessible via the servers filesystem.

See also file_exists()