From: John K. <jo...@ke...> - 2002-11-15 11:09:10
|
>I want to create a link that points to a page created "yesterday". I >need to compute >the "yesterday" date in order to create the URL. >I also want to create a page whose content will be adapted to the >day of week. I need >some if/then/else syntax. How about pointing to a .php page that figures out which page is 'yesterday's' and does a header redirect to the right URL? yesterday.php <?php $yesterday = mktime (0,0,0,date("m"), date("d") - 1, date("Y")); $wiki_url = "http://www.yourserver.com/wiki/" . date ("Y-m-d", $yesterday); header("Location:$wiki_url"); ?> John. -- ------------------------------------ 0113 2289316 / 07944 755613 jo...@ke... / www.kershaw.org AOL johnkershaw / Y! john_m_kershaw ------------------------------------ |