file length php code example
Example 1: php get size of file
$fileSizeInBytes=filesize("/path/to/myfile.txt");
Example 2: filesize in php
$file = '/path/to/your/file';
$filesize = filesize($file);
echo "The size of your file is $filesize bytes.";