Note Submitter: hm2k at php dot net
----
In reply to benshelock, consider this:
<?php
$path='http://www.hpi.co.uk/images/test/';
$file='15635_0_0.9955380731532122_ORIG.jpg';
$size = getimagesize($path.$file);
echo $size['mime']; //returns image/x-ms-bmp
echo $size[2]; //returns 6
?>
It's probably best to always handle it using the numerical value rather than the interpreted mime type.
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.