Re: string mime_content_type ( string $filename )

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

-- 
regards,

Kalle Sommer Nielsen
kalle@xxxxxxx




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux