//array named 'arr' to store image file names ------
$arr=array("2.jpg","3.jpg","5.jpg","6.jpg","7.jpg","8.jpg","9.jpg","10.jpg","12.jpg","Aspergillus.jpg","Azoarcus.jpg","Azospirillum.jpg");
?>
MIFSPC-Photo Gallery
|
//displaying 12 images one by one in a table ---
for($i=0;$i<12;$i++)
{
?>
$fname="images/".$arr[$i];
$number=filesize($fname);
$number=$number/1024;
$fsize=number_format($number,2,'.','');
?>
echo $fsize." K"; ?>
|
if((($i+1)%4)==0)
{
?>
}
}
?>
|
|
|