note 63807 added to function.getimagesize

From: Date: Fri, 31 Mar 2006 15:01:52 +0000
Subject: note 63807 added to function.getimagesize
Groups: php.notes 
Request: Send a blank email to php-notes+get-107074@lists.php.net to get a copy of this message
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.php.net/note/edit/63807 Del: integrated -- http://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://master.php.net/note/delete/63807/spam Del: non-english -- http://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://master.php.net/manage/user-notes.php

« previous php.notes (#107074) next »