Jump to content
php.lv forumi

show file size


millers

Recommended Posts

te buus:

 

<?php

// outputs e.g.  somefile.txt: 1024 bytes

$filename = 'somefile.txt';
echo $filename . ': ' . filesize($filename) . ' bytes';

?>

 

Ja nepiecieshams KB tad izdali ar 1024 un ja MB, tad veelreiz dali ar 1024 utt... ;)

Link to comment
Share on other sites

×
×
  • Create New...