Home > Backend Development > PHP Tutorial > 请问下php如何快速判断大量远程文件header头

请问下php如何快速判断大量远程文件header头

WBOY
Release: 2016-06-23 14:09:42
Original
931 people have browsed it

远程文件是一个跳转


header("Location: http://www.baidu.com");
Copy after login


每次获取,可能相同,可能不同

大概每小时判断一次,每次需要判断1千个左右

我本来想的是用get_header函数来判断,但是发现效率不高

请教下各位有没有什么好的方法


回复讨论(解决方案)

向 curl_multi_init() 资源追加 含有 CURLOPT_NOBODY 和 CURLOPT_CONNECTTIMEOUT 属性的 curl_init() 资源

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