curl ,php,页面跳转找不到了

2025-03-06 02:09:17
推荐回答(2个)
回答1:

你一开始就跳转页面做什么?
把第一行注释掉。

回答2:

url="看截图/125207/index.html";$str=get_str($url);echo $str;function get_str($url){ $ch=curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT,10); $str=curl_exec($ch); curl...