There's no way it's not going to work, haha
Copy CodeThe code is as follows:
Set_time_limit (0);
function _rand () {
$length = 26;
$chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
$max = strlen ($chars)-1;
Mt_srand (Double) microtime () * 1000000);
$string = ";
for ($i = 0; $i < $length; $i + +) {
$string. = $chars [Mt_rand (0, $max)];
}
return $string;
}
$HTTP _session=_rand ();
$HTTP _session;
$HTTP _server= "search.china.alibaba.com";
$HTTP _url= "/company/k-%cb%ae%cb%ae%cb%ae_n-y.html";
$ch = Curl_init ();
curl_setopt ($ch, Curlopt_url, "http://". $HTTP _server. $HTTP _url);
curl_setopt ($ch, curlopt_returntransfer,true);
curl_setopt ($ch, Curlopt_useragent, "mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;. NET CLR 1.1.4322;. NET CLR 2.0.50727) ");
$res = curl_exec ($ch);
Curl_close ($ch);
Print_r ($res);
?>
http://www.bkjia.com/PHPjc/323115.html www.bkjia.com true http://www.bkjia.com/PHPjc/323115.html techarticle There is no impossible only not to do, haha copy code code as follows: PHP set_time_limit (0); function _rand () {$length =26; $chars = "0123456789abcdefghijklmnopq RSTUVWXYZ "; $max = str ...