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
- php Questions
- Php Questions
- Php Questions
- Contact Me
- How to select a specified number of values starting with each alphabets in mysql.
- Elgg : The most popular open source social networking platform
- php Questions
- How we canmove into last changed position on info window close event On google map
- Some My Sql Questions
- Share your knowledge
1 comments
great
Post a Comment
Please put your comments here. your questions, your suggestions, also what went wrong with me.