移动端手指操控左右滑动的菜单
Facebook
Twitter
LinkedIn

百度资源平台:普通收录/API主动提交方式

1、 php推送:配置Php文档,命名为baidou_map.php,插入以下内容:

				
					<?php
/*百度资源平台获取代码*/
$urls = array(
    /*向百度提交的链接*/
    
    'http://www.noni.net.cn',
	'https://www.noni.net.cn/17193.html',
	'https://www.noni.net.cn/17187.html',
	'https://www.noni.net.cn/16907.html',
	'https://www.noni.net.cn/15098.html',
	'https://www.noni.net.cn/14342.html',
	'https://www.noni.net.cn/15514.html',

);
$api = 'http://data.zz.baidu.com/urls?site=网站地址.cn&token=百度资源平台密钥';
$ch = curl_init();
$options =  array(
    CURLOPT_URL => $api,
    CURLOPT_POST => true,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_POSTFIELDS => implode("\n", $urls),
    CURLOPT_HTTPHEADER => array('Content-Type: text/plain'),
);
curl_setopt_array($ch, $options);
$result = curl_exec($ch);
echo $result;
?>
				
			

在浏览器执行https://www.noni.net.cn/baidou_map.php

获取全站链接文件SiteMapAll.php

发表评论

文章目录
购物车
微信客服
首页
0
购物车
微信服务
个人中心
支付