note 71450 added to function.mime-content-type
| From: | sebastian at studenten-wg dot de | Date: | Wed, 29 Nov 2006 19:41:50 +0000 |
| Subject: | note 71450 added to function.mime-content-type | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-120164@lists.php.net to get a copy of this message | ||
mime_content_type is completly rubbish since it only checks the file extension.
Just rename a few .doc, .mp3 or .pdf and try it.
You will see what i mean.
"file -bi $filename" does the work nicely though and found all my renaming tricks(so far).
----
Server IP: 66.163.161.117
Probable Submitter: 87.162.18.87
----
Manual Page -- http://www.php.net/manual/en/function.mime-content-type.php
Edit -- https://master.php.net/note/edit/71450
Del: integrated -- https://master.php.net/note/delete/71450/integrated
Del: useless -- https://master.php.net/note/delete/71450/useless
Del: bad code -- https://master.php.net/note/delete/71450/bad+code
Del: spam -- https://master.php.net/note/delete/71450/spam
Del: non-english -- https://master.php.net/note/delete/71450/non-english
Del: in docs -- https://master.php.net/note/delete/71450/in+docs
Del: other reasons-- https://master.php.net/note/delete/71450
Reject -- https://master.php.net/note/reject/71450
Search -- https://master.php.net/manage/user-notes.php