Home > Backend Development > PHP Tutorial > php 怎么准确判断远程文件的扩展名

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

WBOY
Release: 2016-06-13 12:31:43
Original
1024 people have browsed it

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

)

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

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template