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;
| Copyright © 2001-2005 The PHP Group All rights reserved. |
This unofficial mirror is operated at:
The Server Pages Last updated: Thu May 19 17:35:34 2005 CDT |