View Single Post
Old 09-09-2002, 08:44 AM  
FuqALot
Confirmed User
 
Join Date: Dec 2001
Location: Malibu
Posts: 3,817
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.
FuqALot is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote