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代碼示例

  1. <?php
  2. $urls = array(
  3.     'http://www.example.com/1.html',
  4.     'http://www.example.com/2.html',
  5. );
  6. $api = ' ';
  7. $ch = curl_init();
  8. $options =  array(
  9.     CURLOPT_URL => $api,
  10.     CURLOPT_POST => true,
  11.     CURLOPT_RETURNTRANSFER => true,
  12.     CURLOPT_POSTFIELDS => implode("\n", $urls),
  13.     CURLOPT_HTTPHEADER => array('Content-Type: text/plain'),
  14. );
  15. curl_setopt_array($ch, $options);
  16. $result = curl_exec($ch);
  17. echo $result;
  18. ?>
復(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