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.
<?php
$size = filesize("log.txt");
print "The size of the logfile is $size bytes";
?> The size of the logfile is 206 bytes This code prints the size of a file.