3 ms·
consider using the getimagesize function. http://us.php.net/getimagesize http://us.php.net/getimagesize the comments have some useful info on how to get the ima
by noodle 19y ago
consider using the getimagesize function.
http://us.php.net/getimagesize http://us.php.net/getimagesize
the comments have some useful info on how to get the image type.
iirc, the problem using the file type string is that its not consistent.