For those of you who are confused about what the mime type
IE displays image/pjpeg and other browsers image/jpeg and
are building in checks for all of your scripts to tell the
difference i would suggest using the getimagesize() mime
results which will always be image/jpeg regardless what
browser you use.
<?php
$info = getimagesize("image.jpg");
foreach($info as $key => $value) {
echo $key . ' - ' . $value . '<br />';
}
?>
Where it says mime always is image/jpeg
----
Server IP: 85.116.0.130
Probable Submitter: 212.158.207.184
----
X-Spam-Status: No, hits=3.3 required=5.0
tests=DATE_MISSING,FROM_NO_LOWER,
HTML_MESSAGE autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.getimagesize.php
Edit -- http://master.p
hp.net/note/edit/63807
Del: integrated -- ht
tp://master.php.net/note/delete/63807/integrated
Del: useless -- http:
//master.php.net/note/delete/63807/useless
Del: bad code -- http
://master.php.net/note/delete/63807/bad+code
Del: spam -- http://m
aster.php.net/note/delete/63807/spam
Del: non-english -- h
ttp://master.php.net/note/delete/63807/non-english
Del: in docs -- http:
//master.php.net/note/delete/63807/in+docs
Del: other reasons-- http://master
.php.net/note/delete/63807
Reject -- http://master
.php.net/note/reject/63807
Search -- http://ma
ster.php.net/manage/user-notes.php
--
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php
|