check file size php code example
Example 1: php get size of file
$fileSizeInBytes=filesize("/path/to/myfile.txt");
Example 2: get file size in php
$img = get_headers("file URL", 1);
echo $img["Content-Length"];
$fileSizeInBytes=filesize("/path/to/myfile.txt");
$img = get_headers("file URL", 1);
echo $img["Content-Length"];