1
<?php
$site[] = 'youtube.com';
$site[] = 'facebook.com';
$destino = rand(0, (count($site) - 1));
header("Location: " . $site[$destino]);
?>
Guys, I use this script to do a random redirect. The script will choose between the two variables and will redirect, simple. But I wanted help to change this per day. Example, on Monday the variables would be
$site[] = 'youtube.com';
$site[] = 'facebook.com';
On Tuesday would be
$site[] = 'exemplo.com';
$site[] = 'mangaonli.com';
And so on. Someone could help me?
Thanks, man. Thanks a lot!
– RafaelMacedo
If you can give me a hand with this I’d like to thank you, dear:https://answall.com/questions/380999/aleat%C3%B3rio-entre-Hor%C3%A1rio
– RafaelMacedo