PHP 获取 HTTP 响应头信息代码示例
function gethttp($url) { $url = 'http://47.106.177.112/http.php?url=' . $url; $html = file_get_contents($url); $search = '/HTTP:(.*?)/'; preg_match($search, $html, $Date); if(isset($Date[1])){ return $Date[1]; }else{ return '未知'; } }
原文地址: https://www.cveoy.top/t/topic/bjTO 著作权归作者所有。请勿转载和采集!