PHP- Get file type by URL

后端 未结 7 1309
太阳男子
太阳男子 2020-12-31 16:54

I want to get the file type (eg. image/gif) by URL using PHP.I had tried



        
7条回答
  •  难免孤独
    2020-12-31 17:44

    3 is image type response for PNG image. See: http://php.net/manual/en/function.exif-imagetype.php

提交回复
热议问题