CODE
LIBARY.COM
Home
/
PHP
PHP Showing the file size in kilobytes
Showing the file size in kilobytes
<? $file = "index.php"; echo round(filesize($file)/1024,2)." KB"; ?>
$file = "index.php"; echo round(filesize($file)/1024,2)." KB"; ?>
Copy to Clipboard
Related Snippets
PHP Unix Time
PHP Another way to get extension
PHP Crypt
PHP HTTPd Software Version Detection
PHP Export array to csv
PHP Random password using md5() and rand()
PHP Beta mIRC Code Highlight
PHP Another Very Basic Counter
PHP Registering REST Images in WordPress with PHP
PHP Calendar