首页 > php提交时间限制...?
php怎么实现用户每30分钟提交一次?
记录用户上次提交的时间 $lastTime(时间戳) ,这次提交的时候判断一下
$lastTime(时间戳)
if(time()-$lastTime>1800){ //允许提交 }else{ }