php how to upload 10mb txt file to server code example Example: php get size of file $fileSizeInBytes=filesize("/path/to/myfile.txt");