function ByteSize($bytes)
{
$size = $bytes / 1024;
if($size < 1024)
{
$size = number_format($size, 2);
$size .= ' KB';
}else {
if($size / 1024 < 1024) {
$size = number_format($size / 1024, 2);
$size .= ' MB';
} else if($size / 1024 / 1024 < 1024) {
$size = number_format($size / 1024 / 1024, 2);
$size .= ' GB';
}
}
return $size;
}
[Friday, January 11, 2008
|
1 comments
]
Popular Posts
- Elgg : The most popular open source social networking platform
- function to check whether the year given is a leap year or not
- How to create a plugin in elgg.
- Help with codeignitor
- Php Questions
- php questions
- urlencode and urldecode
- need php help!
- Type Juggling in php?
- Creating Custom Module in VtigerCRM
1 comments
great
Post a Comment
Please put your comments here. your questions, your suggestions, also what went wrong with me.