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 Files sorting by size
PHP Configuration
PHP Mail Validation
PHP Observer Design Pattern
PHP Use CURL with proxy
PHP Converting an Array to a Formatted String in PHP
PHP Simple File Upload
PHP Name Generator
PHP Web-based Image Resizer Function in PHP
PHP Flat File User Log