How many galleries are in the file ? If you're only sending once a day, you can go by the day # ( day of month, day of year ).
$fileName = "./bobotheclown.txt";
$a = file($fileName);
#$gal = date("j"); // day of month
#$gal = date("z"); // day of year
header( "Location: ". $a[$gal] );
if you only have around 30 or so then use day of month. if you have 100 or more then just fill the file up with enough to equal 367 or so, duplicate as necessary if you don't have enough of them. only one will show per day.
|