Get File Size in Bytes using PHP

filesize function

<?php

$sizeInBytes = filesize('test.txt');

echo $sizeInBytes;

Leave a Comment

Cancel reply

Your email address will not be published.