用PHP写一个功能每次访问域名按顺序跳转固定网址
= count($urls)) {
$index = 0;
//如果序号超过网址数组长度,重置为0
}
setcookie('url_index', $index+1, time()+3600*24);
//设置下一个要跳转的网址序号
header("Location: ".$urls[$index]);
//跳转到指定网址
exit;
?>
原文地址: https://www.cveoy.top/t/topic/f3sL 著作权归作者所有。请勿转载和采集!