You should destroy the $img too...
So it would be :
$img = @imagecreatefromjpeg("http://www.mysite.com/my_image.jpg");
if ($img) {
$img_height = imagesy($img);
ImageDestroy($img);
}
echo "My height is " . $img_height;
![]() |
|
||||||||||
|
imagesyСписок параметров
imagesy
BSE_Icheb at hotmail dot com
20-Jun-2003 04:13
You should destroy the $img too...
boo at php dot net
13-Aug-2002 11:01
To use this function notice that 'image' parameter it's a RESOURCE and NOT an Image File Path ! |