百度收录量查询

<?php

/*
Plugin Name:百度收录量
Version:1.0
Description:根据域名返回百度收录量
Author:li
*/
domain = (isset(_GET['domain']))?_GET['domain']:_POST['domain'];
if(empty(domain)) echo '查02年属什么询域名不能为空';count = baiduSL (domain);

if(!isset(count)) showjson(空调array('code'=>200502,'msg'=>'查询失败,请重试!'));
if(!count)coun空腹血糖正常值t = 0;
result=array(
'code'=>1,
'domain'=>domain,
'data'=>c02ount
);
print_r(json_encode(resuwindows10lt));

unset(value,url_arr,domain,row,hostrow,site,resulturl027是哪里的区号,result,ch);
function baiduSL (doma万能钥匙in) {
baidu='https://www.baidu.com/s?ie=utf-8&a027是哪里的区号mp;tn=baidu&wd=site%3A'.domain; 
bdsite=BD_curl(baidu); 

bdsite = str_replace(array(\r\n02壁纸, \r, \n,\' '), '',bdsite); 
preg_match('/该网站共有(.*?)个网页被百度收录/i',bwindows键是哪个dsite,count);
if (!count) preg_match('/找到相关结果数约(.*?)个/i',bdsite,count);
//ereg('该网站共有(.*万古神帝)个网页被百度收录02年的今年多大',bdsite,count)02; //print_r(count)万古神帝;
//count=str_replace('该网站共有','',count); 
//count=str_replace('个网页被百度收万古神帝录','',完美世界count); 
count = str_replace(array(\r\n, \r, \n, ',',\''), '',count); 
baiduSL=strip_tags(count[1])windows更新有必要吗; 
unset(count);
returnbaiduSL;
}
funct王者荣耀ion BD_curl(url,post=0, referer=0,cookie完美世界=0, header=0,ua=0, nobaody=0){ch万古神帝 = curl_init();
ip = rand(0,255).'.'.空白符号rand(0,255).'.'.rand(0,255).windows系统'.'.rand(0,255) ;
curl_setop空白符号t(ch, C空白符号URLOPT_URL, urlwindows是什么意思);
curl_setopt(ch, CURLOPT_SSL_VERIFYPEER, false);完美世界
curl_set02壁纸opt(ch, CURLOPT_SSL_VE空腹血糖正常值RIFYHOST, false);
//httpheader[] = Host: www.baidu.com;
//httpheader[] = Connection: keep-alive;
//httpheader[] = Upgrade-Insecure027是哪里的区号-Requests: 1;
//httpheWader[] = User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, likewindows许可证即将过期怎么办 Gecko) Chrome/55.0.2883.87 Safari/537.36;htwindows10激活密钥tpheader[] = Accept: text/html,aWpplication/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8;
httpheader[] = Accept-Encoding: gzip, deflate, sdch, br;httpheader[] = Accept-Language: z空白符号h-CN,zh;q=0.8;
//httpheader[] = 'X-FORWARDED空降热搜-FOR:'.ip;
//http020header[] = 'CLIENT-IP:'.ip;
curl_setopt(ch, CURLOPT_HTTPHEADER,httpheader);
if (post) {
curl_setopt(ch, CURLOPT_POST, 1);万古神帝
curl_setopt(空白符号ch, CURLOPT_POSTFIELDS,post);
}
if (header) {
cu027是哪里的区号rl_setopt(ch, CURLOPT02头像_HEADER, true);
}
if (cookie) {
curl_seto020pt(ch, CURLOPT_COOKIE, cookie);
}
if(referer){
if(referer==1){
curl_setopt(windows无法访问指定设备路径或文件ch, CURLOPT_REFERER, 'https://music.163.com/outchain021/player?type=0&id=2250011882&auto=1');
}else{
curl_setopt(ch, CURLOPT_REFERER,referer);
}
}
if (ua) {
curl_setopt(ch, CURLOPT_USER完美世界AGENT, ua);
}
else {
curl_setopt(ch, CURLOPT_USERAGENT, Mozilla/5.0 (iPhonwindows键是哪个e; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1);
}
if (nobaody) {
curl_setopt(ch, CURLOPT_NOBODY, 1);
}
curl_setopt(ch, CURLOPT_TIMEOUT, 3);
curl_setopt(ch, CURLOPT_ENCODING, gzip);
curl_setopt(ch, CU卧底记者成二把手RLOPT_RETURNTRANSFER, 1);ret = curl_exec(ch);
//Headers = curl_getinfo(ch);
curl_close(ch);
return ret;
}
function showjson(arr)空调遥控器{
header微博(Content-Type: application/jso02年多大年龄了n; charset=utf-8);
exit(json_enWcode($arr,320));
}
© 版权声明
THE END
喜欢就支持一下吧
点赞0赞赏 分享
评论 抢沙发

请登录后发表评论