note 4869 deleted from GetImageSize by jmoore
| From: | jmoore@php.net | Date: | Thu, 31 Aug 2000 22:43:57 +0000 |
| Subject: | note 4869 deleted from GetImageSize by jmoore | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-3821@lists.php.net to get a copy of this message | ||
I used this code it it did not work for me...could someone proofread it??*$image_size =
getimagesize("img/$logo");
if ($image_size[0] > 100)
{
$width = 100;
$height = (100 * $image_size[1])/$image_size[0];
}
else
{
$width = $image_size[0];
$height = $image_size[1];
}
exec("cp $logo /home/online/www/images/$logo_name");
and in a table: print "<img src="http://www.cfsquad.com/images/$logo"
width=$width height=$height border='0'></td>";
It stores the image but gives me and error: Warning: Unable to open img/none in
/home/online/www/php/addsquad.php3 on line 86
line 86 is the maked with a * symbol
Thanks,
Ryan