|
Hello Rex,
You could use this perl code:
#!/usr/bin/perl
($sec,$min,$hour,$day,$month,$year,$day2) = (localtime(time));
$month++;
if ($day < 10) { $day = "0$day"; }
if ($month < 10) { $month = "0$month"; }
print "Location: $month-$day.html\n\n";
The will redirect the visitor to a page of today, so it's 09-09 (month-day) today, it will then go to: 09-09.html
Make sure you have the cgi in the same directory as the .html files or you'll have to edit the print location line above.
I just wrote it in a few secs so I didn't test it but since it's such a simple script, it'll work :-P.
late.
|