最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
PHP获取301重定向页面跳转后真实URL地址
时间:2022-06-24 19:53:00 编辑:袖梨 来源:一聚教程网
获取301状态肯定没问题。
代码如下 | 复制代码 |
function getrealurl($url){ ['Location'])-1]; |
补充:get_headers — 取得服务器响应一个 HTTP 请求所发送的所有标头
代码如下 | 复制代码 |
$url = 'http://111com.net'; print_r(get_headers($url)); |
结果
代码如下 | 复制代码 |
Array |
相关文章
- 以下哪种昆虫对环境非常敏感,被称为“环境哨兵” 蚂蚁庄园今日答案10月3日 10-02
- 蚂蚁庄园小课堂今日最新答案2024年10月3日 10-02
- 蚂蚁庄园每日答题答案2024年10月3日 10-02
- 蚂蚁庄园小鸡答题今日答案2024年10月3日 10-02
- 小鸡答题今天的答案是什么2024年10月3日 10-02
- 蚂蚁庄园小课堂2024年10月3日最新题目答案 10-02