Reply to Re: Getting remote SWF size

Your name:

Reply:


Posted by Con on 09/28/05 03:27

Hi, it seems that you should be able to use the following function:

int filesize ( string filename );

Also, you can use the following:

<?php
function human_file_size($size)
{
$filesizename = array(" Bytes", " KB", " MB", " GB", " TB", " PB", "
EB", " ZB", " YB");
return round($size/pow(1024, ($i = floor(log($size, 1024)))), 2) .
$filesizename[$i];
}
?>

BTW, the above code comes from the php.net.

Peace,

-Conrad

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация