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/os2G 著作权归作者所有。请勿转载和采集!