织梦cms提交熊掌号php,织梦cms熊掌号自动提交文章收录php源代码 上传目录即可...

编程入门 行业动态 更新时间:2024-10-09 06:29:22

织梦cms提交<a href=https://www.elefans.com/category/jswz/34/1744734.html style=熊掌号php,织梦cms熊掌号自动提交文章收录php源代码 上传目录即可..."/>

织梦cms提交熊掌号php,织梦cms熊掌号自动提交文章收录php源代码 上传目录即可...

文件名1.php,可以放在网站根目录,到时候每天点一下就行了!只适用于自适应站点

$dayBegin = mktime(0,0,0,$month,$day,$year);

$dayEnd = mktime(23,59,59,$month,$day,$year);

$query = "SELECT arch.id,types.typedir FROM dede_arctype as types inner join dede_archives as arch on types.id=arch.typeid where pubdate".$dayBegin.""; //echo $query; $urls=""; $dsql->Execute('arch.id,types.typedir',$query); while($row = $dsql->GetArray('arch.id,types.typedir')) { $urls.="".str_replace("{cmspath}","",$row['typedir'])."/".$row[id].".html".","; } $urls=substr($urls,0,-1); $urls = explode(",",$urls);

$api = '=熊掌号ID&token=密钥&type=realtime'; // 前边的熊掌号ID和密钥换成自己的

$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; ?>

更多推荐

织梦cms提交熊掌号php,织梦cms熊掌号自动提交文章收录php源代码 上传目录即可...

本文发布于:2024-03-08 19:51:42,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1722113.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:熊掌   源代码   上传   目录   文章

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!