97久久国产亚洲精品超碰热,成人又色又爽的免费网站,色偷偷女人的天堂a,男女高潮喷水在线观看,国内精品一线二线三线区别在哪里
Discuz! 官方交流社區(qū)
標(biāo)題:
dz 怎么使用百度的主動(dòng)推送
[打印本頁(yè)]
作者:
mylogins
時(shí)間:
2019-9-12 09:05
標(biāo)題:
dz 怎么使用百度的主動(dòng)推送
百度的主動(dòng)推送 php代碼示例
<?php
$urls = array(
'http://www.example.com/1.html',
'http://www.example.com/2.html',
);
$api = ' ';
$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;
?>
復(fù)制代碼
其中
<?php
$urls = array(
'http://www.example.com/1.html',
'http://www.example.com/2.html',
);
上面這2個(gè)網(wǎng)址 怎么替換成dz最新的帖子,讓它全自動(dòng)推送
作者:
Failure
時(shí)間:
2019-9-12 23:40
多個(gè)還是?
歡迎光臨 Discuz! 官方交流社區(qū) (http://r615.cn/)
Powered by Discuz! X5.0