php filesize($filename) to char number code example Example: php get size of file $fileSizeInBytes=filesize("/path/to/myfile.txt");