function baiduVisit($bdId$targetUrl$referer = ‘88888888.so‘$visitTimes=1){
$bdjs = ‘https://hm.baidu.com/hm.js?‘;
$bdgif = ‘https://hm.baidu.com/hm.gif?‘;
//$bdId = ‘65e1c6689693082cffb3b7e1f2d8027f‘;
$arr=array(
‘cc‘=> ‘0‘
‘ck‘=> ‘1‘
‘cl‘=>‘24-bit‘
‘ds‘=> ‘1440x900‘
‘vl‘=> ‘747‘
#‘ep‘=> ‘63462301‘#时间
‘et‘=> ‘0‘ #3
‘fl‘=> ‘29.0‘
‘ja‘=> ‘0‘
‘ln‘=> ‘zh-cn‘
‘lo‘=> ‘0‘
‘lt‘=> time()
‘rnd‘=> rand(10000000002000000000) #random
‘si‘=> $bdId
‘v‘=> ‘1.2.30‘
‘lv‘=> ‘3‘
‘sn‘=> ‘25573‘#25581
‘su‘=> $referer #请求来源
#‘ct‘=> ‘!!‘
#‘tt‘=> ‘页面标题‘
);
//echo http_build_query($arr);
// Create a stream
$opts = array(
‘http‘=>array(
‘method‘=>“GET“
‘header‘=>“Accept-language: cn
评论
共有 条评论