时间:2021-07-01 10:21:17 帮助过:5人阅读
header("content-type:text/html;charset=UTF-8"); $ch = curl_init(); $path = "http://www.baidu.com/s?q1=2012%B4%BA%BC%BE%C6%A4%D2%C2%B6%CC%BF%EE&q2=&q3=&q4=&rn=100&lm=0&ct=0&ft=&q5=&q6=&tn=baiduadv"; //$path = "http://www.baidu.com/s?q1=2012&q2=&q3=&q4=&rn=100&lm=0&ct=0&ft=&q5=&q6=&tn=baiduadv"; curl_setopt($ch,CURLOPT_URL,$path); $info = curl_exec($ch); echo $info; ?>