PHP Get File Size
This PHP script checks and outputs a file size.
<?php /** * Get File Size * * This script gets and displays the file size. * * @author PHP Simple * @website http://phpsimple.com * @date August 2021 */ // Name and location of the file $filename = "example.txt"; // Get file size $file_size = filesize($filename); // Display it echo $file_size; ?>