Quote:
quote:Originally posted by harpua
Sorry I was half asleep, you are trying to asign the image size to an array you can do it like this.
$img_size=array();
for($i=0;$i<5;$i++)
{
$p=creating dynamically path;
list($width, $height, $type, $attr) = getimagesize($p);
$img_size[]=$width . "-" . $height . "-" . $type . "-" . $attr;
}
foreach ($img_size as $imagesize1) {
echo $imagesize1;
}
if you want to just use width="" height="" you can just use the $attr variable.
mike
|
hey its work but with follow warning thanks a lot but with warning
:-(
Warning: getimagesize(Array) [function.getimagesize]: failed to open stream: No such file or directory in C:\apachefriends\xampp\htdocs\modules\mod_mediaIma ge.php on line 88
what could be the reason any idea plz i think i m near to solution ???