so according to this:
http://php.net/manual/en/function.getimagesize.php
If accessing the filename image is impossible, or if it isn’t a valid
picture, getimagesize() will generate an error of level E_WARNING. On
read error, getimagesize() will generate an error of level E_NOTICE.
but then when I tried getimagesize('http://www.stackoverflow.com'), no errors nor warning is generated even though the url is not a valid image
and when I tried echo getimagesize('http://www.stackoverflow.com') === FALSE, it returned 1 which implies that getimagesize() returned the boolean false…
does this mean that I don’t have to worry about errors when I pass in URLs and that this is actually a valid use of getimagesize()?
Here is the code
Reference http://php.net/manual/en/function.getimagesize.php from user contribution
james dot relyea at zifiniti dot com