0
点赞
收藏
分享

微信扫一扫

php推送百度mip链接

言午栩 2022-11-27 阅读 129

<?php

_GET['dm'];

_GET['token'];

length = 5)

{ $str = ''; $strPol = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz";

strPol)-1;

for($i = 0; $i < $length; $i++) {

strPol[rand(0,$max)];

} return

count = 50; //默认推送条数

i = 0; $i < $count; $i++)

{

time}/".rand_str().rand_str().'.html';

}

$api = "​​http://data.zz.baidu.com/urls?site=您的域名&token=您的token&type=mip​​";

options = array(

CURLOPT_URL => $api, CURLOPT_POST => true, CURLOPT_RETURNTRANSFER => true, CURLOPT_POSTFIELDS => implode("\n",

ch,

result = curl_exec(

result;

举报

相关推荐

0 条评论