Re: string mime_content_type ( string $filename )
| From: | Kalle Sommer Nielsen | Date: | Sat, 15 Dec 2018 20:31:07 +0000 |
| Subject: | Re: string mime_content_type ( string $filename ) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-326639@lists.php.net to get a copy of this message | ||
Hi Jeffry
Den lør. 15. dec. 2018 kl. 21.28 skrev Jeffry Killen <jekillen@prodigy..net>:
>
> Hello;
>
> Regarding function string mime_content_type ( string $filename )
>
> Does this function actually look at and analyze the content or does
> it just glean the content from file extension?
Any of the ext/fileinfo functionality will look at the (binary) header
in each file examinated to determine the actual type, it will never
use the name of the file to determine this.
--
regards,
Kalle Sommer Nielsen
kalle@php.net