如题
function curl_link($url){
$HTTP_Server=$url;
$ch = curl_init();
curl_setopt ($ch,CURLOPT_URL,$HTTP_Server);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
curl_setopt($ch,CURLOPT_USERAGENT,"Mozilla/5.0 (Linux; U; Android 2.3.7; zh-cn; c8650 Build/GWK74) AppleWebKit/533.1 (KHTML, like Gecko)Version/4.0 MQQBrowser/4.5 Mobile Safari/533.1s");
$res = curl_exec($ch);
curl_close ($ch);
return $res;
}
ringa_lee