This function returns the size of the specified file.

Syntax: filesize(filename)

Description:

The argument “filename” is Required. It specifies the file to check.

This function returns the file size in bytes on success or FALSE on failure.

Example:
Code:

echo filesize("test.txt");

Output:

34

eXTReMe Tracker