Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

First lets get File Size:

https://wpguru.co.uk/2014/03/how-to-check-the-size-of-a-file-in-php/

No Format
$file = '/path/to/your/file';
$filesize = filesize($file);

echo "The size of your file is $filesize bytes.";

...