Get the width and height of an image using a function in PHP
This is a very useful function in PHP. PHP provides function to get the width and height of an image. The getimagesize() function will determine the size of image file including flash file(swf). Syntax list($width, $height, $type, $attr) = getimagesize(“image_name.jpg”); Code This is a sample code, change image_name to your image name and test it! … [Read more…]