PHP function filesize()

Availability in PHP 4.0

Gets file size

Parameters

Parameter Data type Default value Note
$filename string not Path to the file.

Return values

int

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

Other resources

Official filesize documentation

Newsletter

Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.