Format File Sizes PHP script

SPONSORED LINKS

    Specification

  • Version:
  • File size: 0 KB
  • File name: bendiken.net
  • Last update:
  • Platform: Windows / Linux / BSD
  • Language: PHP
  • Price:Freeware
  • Company: Arto Bendiken (View more)

Format File Sizes script description:




Publisher review:
Format File Sizes - Given a byte size, returns a formatted string, e.g. 128M. Works all the way up to yottabytes (280) Source Code

function filesize_format($size = 0, $decimals = 0) { static $units = array('', 'K', 'M', 'G', 'T', 'P', 'E', 'Z', 'Y'); if (empty($size)) return '-'; $unit = floor(log($size) / log(1024)); $value = round($size / pow(1024, $unit), $decimals); return number_format($value, $decimals) . $units[$unit];}
Format File Sizes is a PHP script for Snippets scripts design by Arto Bendiken. It runs on following operating system: Windows / Linux / BSD.

Operating system:
Windows / Linux / BSD

Latest script and internet news

222

222

22

Posted on: 18 Jul 2023 22:27 by A. Brown

111

111

111

Posted on: 18 Jul 2023 22:24 by A. Brown

The permanently active Push system offered by the new Google Chrome 42

The permanently active Push system offered by the new Google Chrome 42

Hacked By !Sc-sT

Posted on: 17 Mar 2015 07:57 by A. Brown

SPREAD THE WORD

User Rating


Rating: 2.2 out of 5
Based on 13 ratings. 13 user reviews.

  • Currently 2.15 out of 5
  • 1
  • 2
  • 3
  • 4
  • 5