php getimagesize of dynamically created picture
问题 I am trying to determine if image.php is valid picture file. It may be or may be not because if DB has information about resized picture it is going to be valid - image.php will resize original picture and print it to the screen. There is also alternative - there is no filename information in database and it can result error message or error picture. I'd like to get dimensions of image and if it is width = 0 and height = 0 then print error message. I was trying to do it with getimagesize but