Is there a way to extract the height and width of an uploaded image?
So, I'm uploading an image called link_on. Can I determine its length and height just by reading the file so that I can store those attributes in the database?
Yes:
Use
$size = getimagesize('filename'); $width = $size[0]; $height = size[1];