Is it possible to get a file extension without knowing it?

后端 未结 4 1298
礼貌的吻别
礼貌的吻别 2021-02-14 14:52

I have a file called 94bf663a100e848fb599209af8cdc2b5.wmv. I know pathinfo will not give me the extension if I just use the name 94bf663a100e848fb599209af8cdc2b5. I

4条回答
  •  广开言路
    2021-02-14 15:31

    Try filetype() or mime_content_type() function in php... pass the file path it returns the file type.

提交回复
热议问题