Web lists-archives.com

Re: string mime_content_type ( string $filename )

Hi Jeffry

Den lør. 15. dec. 2018 kl. 21.28 skrev Jeffry Killen <jekillen@xxxxxxxxxxx>:
> 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.


Kalle Sommer Nielsen