ibeblunt
Wed 14th Feb '01, 9:21pm
Wrote me a little php script to find out how much space is available on my hard drive:
<?php
$available = diskfreespace("/");
echo number_format($available);
?>
The result is:
5,175,431,168
If I'm correct this is 5GB. How do I translate the number to something like "5.1" so I can just look at it at a glance?
<?php
$available = diskfreespace("/");
echo number_format($available);
?>
The result is:
5,175,431,168
If I'm correct this is 5GB. How do I translate the number to something like "5.1" so I can just look at it at a glance?