PHP » I/O » filesize()

Syntax:
int filesize(string filename)
filename
The name of the file.

Returns the size of a file.

This function returns the size of a file as a number of bytes. If an errors occurs, FALSE is returned.

Examples

Code:
<?php

$size = filesize("log.txt");
print "The size of the logfile is $size bytes";

?>
Output:
The size of the logfile is 206 bytes
Explanation:

This code prints the size of a file.