找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索本站精品资源

首页 教程频道 php教程 查看内容

php怎么准确判断远程文件的扩展名

作者:模板之家 2020-10-31 15:17 133人关注

php如何准确判断远程文件的扩展名?http响应头如下:Array(=HTTP/1.1200OK=Co,php怎么准确判断远程文件的扩展名

php 如何准确判断远程文件的扩展名?

http响应头如下:
Array
(
    [0] => HTTP/1.1 200 OK

    [1] => Content-Length: 345942

    [2] => Content-Type: application/octet-stream

    [3] => Server: Microsoft-IIS/6.0

    [4] => X-Powered-By: ASP.NET

    [5] => Date: Sun, 08 Dec 2013 05:44:39 GMT

    [6] => Connection: close

)

文件名里面没有扩展名,杂乱无章的。

原作者: 互联网 来自: 网络收集

全部回复(0)