详情页

pbootcms常用代码存放

时间:2023年09月24日

编辑:佚名

1.pbootcms采集时,如果想要设置定期发布,可以在发布PHP文件里面,增加如下代码:
if(file_exists("num.txt")){
    $updata_num = file_get_contents("num.txt");
    $updata_num++;
    file_put_contents("num.txt",$updata_num);
}else{
    file_put_contents("num.txt",1);
    $updata_num = 1;
}
$updata_time = $updata_num*1728;
增加的位置是接收post数据的地方
相关文章
猜你需要