PHP- Get file type by URL

后端 未结 7 1308
太阳男子
太阳男子 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

    In the first example, you're getting a blank page because you're not doing anything with the return value from the function call. In the second example, you're getting a valid response. See the manual page for exif_imagetype() for a list of what the values mean.

提交回复
热议问题