note 81270 deleted from ref.fileinfo by mazzanet
| From: | mazzanet@php.net | Date: | Tue, 26 Apr 2011 09:49:52 +0000 |
| Subject: | note 81270 deleted from ref.fileinfo by mazzanet | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-179149@lists.php.net to get a copy of this message | ||
Note Submitter: joe at bobbriggs dot com
----
[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