php read file file size not match real file code example Example: php get size of file $fileSizeInBytes=filesize("/path/to/myfile.txt");