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