Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

filesize in php

$file = '/path/to/your/file';
$filesize = filesize($file); // bytes
$filesize = round($filesize / 1024, 2); // kilobytes with two digits
 
echo "The size of your file is $filesize KB.";
Source by wpguru.co.uk #
 
PREVIOUS NEXT
Tagged: #filesize #php
ADD COMMENT
Topic
Name
5+8 =