Unsupported scripts and control panel web app for a hosting company
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

003.php 2.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?PHP
  2. define('SUPPORT_TITLE', 'What do KiB/MiB/GiB mean?');
  3. define('SUPPORT_BTITLE', 'What do KiB/MiB/GiB mean?');
  4. if (!defined('LIB_ACCOUNT')) { require('lib/account.php'); }
  5. addDashboardItem('Useful links', 'Site overview', 'sites');
  6. if (!defined('UID')) {
  7. addDashboardItem('Useful links', 'Login', 'login');
  8. }
  9. addDashboardItem('External pages', 'physics.nist.gov: binary prefixes', 'http://physics.nist.gov/cuu/Units/binary.html');
  10. addDashboardItem('External pages', 'Wikipedia: IEC standard prefixes', 'http://en.wikipedia.org/wiki/Binary_prefix#IEC_standard_prefixes ');
  11. addDashboardItem('External pages', 'IEC 60027', 'http://www.iec.ch/cgi-bin/procgi.pl/www/iecwww.p?wwwlang=E&wwwprog=sea22.p&search=iecnumber&header=IEC&pubno=60027&part=&se=&number=&searchfor=&ics= ');
  12. $sbody = <<<SUPPORT
  13. <p>
  14. <abbr title="Kibibyte">KiB</abbr>, <abbr title="Mebibyte">MiB</abbr> and
  15. <abbr title="Gibibyte">GiB</abbr> are all standard international units of
  16. storage. Most users will be familiar with 'Kilobytes' (KB), 'Megabytes' (MB),
  17. etc; however, there is a lot of confusion about what values these represent.
  18. The SI prefixes for 'K' (actually 'k'), 'M' and 'G' are all multiples of 10 &mdash;
  19. 1000, 1000000 and 1000000000, respectively. When measuring computing storing
  20. capacity, however, it is often more useful to count in base 2. So the prefixes
  21. are often (incorrectly) associated with powers of 2 that have a similar value:
  22. A Kilobyte becomes 1024 Bytes, a Megabyte becomes 1024x a Kilobyte, etc.
  23. </p>
  24. <p>
  25. To combat this confusion, the International Electrotechnical Commission issued
  26. a new standard &mdash; K, M and G prefixes should be used in accordance with the SI
  27. units, Ki, Mi and Gi should be used for 'binary' prefixes. A comparison of
  28. these units is given below:
  29. </p>
  30. <table>
  31. <tr>
  32. <th>Prefix</th><th>SI unit</th><th>Size (Bytes)</th><th>IEC binary unit</th><th>Size (Bytes)</th>
  33. </tr>
  34. <tr><td>Kilo</td><td>KB</td><td>1000</td><td>KiB</td><td>1024</td></tr>
  35. <tr><td>Mega</td><td>MB</td><td>1000000</td><td>MiB</td><td>1048576</td></tr>
  36. <tr><td>Giga</td><td>GB</td><td>1000000000</td><td>GiB</td><td>1073741824</td></tr>
  37. </table>
  38. <p>
  39. All units used in the UTD-Hosting control panel use the IEC format. Units
  40. on the main UTD-Hosting site (including bandwidth/hard drive limits) use SI
  41. units, which is the standard for ISPs and storage manufacturers.
  42. </p>
  43. SUPPORT;
  44. define('SUPPORT_BODY', $sbody);
  45. ?>