Web Development
 
Your Ad Here
Convert size of file to the largest unit 
function convert_size($size)
{
$filesizename = array(" Bytes", " KB", " MB", " GB", " TB", " PB");
return round($size/pow(1024, ($i = floor(log($size, 1024)))), 2) . $filesizename[$i];
}


[ add comment ] ( 3 views )   |  permalink  |   ( 3 / 173 )

<<First <Back | 1 | 2 | 3 | 4 | Next> Last>>


Home | Portfolio | Hosting | Web Development | Contact Us
© 2007 dpwebservices.net. All right reserved.