note 81270 added to ref.fileinfo
| From: | joe at bobbriggs dot com | Date: | Wed, 20 Feb 2008 20:35:18 +0000 |
| Subject: | note 81270 added to ref.fileinfo | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-136322@lists.php.net to get a copy of this message | ||
[Quote]
I had better results using the PEAR 'MIME_Type' package. It gave proper answers for 1
& 3 and identified the PHP file as 'text/plain' which is probably better than a false
match for C++
[/Quote]
The irony here is that the 'MIME_Type' package uses mime_content_type() which, according
to it's doc page, has been deprecated in favor of fileinfo.
Go figure.
thnx,
Christoph
----
Server IP: 208.69.120.35
Probable Submitter: 65.207.72.66
----
Manual Page -- http://www.php.net/manual/en/ref.fileinfo.php
Edit -- https://master.php.net/note/edit/81270
Del: integrated -- https://master.php.net/note/delete/81270/integrated
Del: useless -- https://master.php.net/note/delete/81270/useless
Del: bad code -- https://master.php.net/note/delete/81270/bad+code
Del: spam -- https://master.php.net/note/delete/81270/spam
Del: non-english -- https://master.php.net/note/delete/81270/non-english
Del: in docs -- https://master.php.net/note/delete/81270/in+docs
Del: other reasons-- https://master.php.net/note/delete/81270
Reject -- https://master.php.net/note/reject/81270
Search -- https://master.php.net/manage/user-notes.php