付费节点推荐
免费节点
节点使用教程
<?php
$con = mysqli_connect("localhost","root","passwd","数据库");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
if(date('d') == 1){ //月初
mysqli_query($con,"UPDATE `user` SET `upload` = '0', `download` = '0', `updated_at` = " . time() );
mysqli_query($con,"DELETE from `user_usage`");
echo("has been rest");
}else{
echo "can't rest";
}
mysqli_close($con);
?>
具体以数据库为准~
保存php文件,放在网站目录下执行。也可设置自动任务。
未经允许不得转载:Bcoder资源网 » whmcs每月重置服务器流量方法