note 97391 added to function.image-type-to-mime-type

From: Date: Sat, 17 Apr 2010 11:31:26 +0000
Subject: note 97391 added to function.image-type-to-mime-type
Groups: php.notes 
Request: Send a blank email to php-notes+get-168344@lists.php.net to get a copy of this message
The method by benshelock at gmail dot com will not work on IE, as Microsoft loves to create their own "standards" (no one else uses). For example, IE will make a png's mime-type as "image/x-png", and jpgs as "image/pjpeg". I suspect they do this sort of stuff as part of their conspiracy to make computing as frustrating as possible. You could just add in conditions for those as well, but who knows if in a couple years from now Microsoft decides "hey, maybe we should change the mime-types again; remember how funny it was when we broke support for it last time?" Here is an alternative: http://r-1.ch/imagecheck.phps Though I have no idea, to be honest, if it fumbles in the same way as I have yet to give it a try. ---- Server IP: 80.67.10.226 Probable Submitter: 83.233.149.159 ---- Manual Page -- http://www.php.net/manual/en/function.image-type-to-mime-type.php Edit -- https://master.php.net/note/edit/97391 Del: integrated -- https://master.php.net/note/delete/97391/integrated Del: useless -- https://master.php.net/note/delete/97391/useless Del: bad code -- https://master.php.net/note/delete/97391/bad+code Del: spam -- https://master.php.net/note/delete/97391/spam Del: non-english -- https://master.php.net/note/delete/97391/non-english Del: in docs -- https://master.php.net/note/delete/97391/in+docs Del: other reasons-- https://master.php.net/note/delete/97391 Reject -- https://master.php.net/note/reject/97391 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#168344) next »