Search
 
SCRIPT & CODE EXAMPLE
 

PHP

filesize in php

$file = '/path/to/your/file';
$filesize = filesize($file); // bytes
$filesize = round($filesize / 1024 / 1024, 1); // megabytes with 1 digit
 
echo "The size of your file is $filesize MB.";
Comment

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.";
Comment

filesize in php

$file = '/path/to/your/file';
$filesize = filesize($file);
 
echo "The size of your file is $filesize bytes.";
Comment

get filesize php

filesize($filename)
Comment

PREVIOUS NEXT
Code Example
Php :: rename migration laravel 
Php :: php hello world program 
Php :: cakephp 4 change layout view in a method 
Php :: how to get previous date in laravel 
Php :: sort array php by key 
Php :: enqueue css 
Php :: contact form 7 checkbox2 
Php :: html to pdf in php 
Php :: php associative array join key values 
Php :: cors error angular php 
Php :: E: Unable to locate package php7.2-fpm 
Php :: clear cache symfony 
Php :: select option edit in laravel 
Php :: update values in array in php 
Php :: advantages of php 
Php :: laravel validation not equal to 
Php :: laravel capsule schema datatime CURRENT_TIMESTAMP 
Php :: php json_decode not working 
Php :: laravel image store 
Php :: ziparchive php example 
Php :: laravel eloquent update 
Php :: wp_debug 
Php :: php call constant in class 
Php :: Delete a single record in laravel 5 
Php :: PHP str_word_count — Return information about words used in a string 
Php :: laravel blade components 
Php :: laravel reload relationship 
Php :: update query laravel 
Php :: php mail if successful 
Php :: group_concat mysql limit issue 
ADD CONTENT
Topic
Content
Source link
Name
3+3 =