filesize() in php November 29, 2021 by Codingtube team filesize() function to determine the size of a file on the hard disk this function takes a filename as an argument filesize( “myfile.txt” ) This returns the size of the specified file in bytes, or false upon error Example of filesize() in php