Home » questions » How can I generate links to a set of URLS that change regularly?

How can I generate links to a set of URLS that change regularly?

2006-08-11 09:52:30, Category: Programming & Design
I'm trying to create a list that will link to the front pages of a set of newspapers. The addresses of these front pages change regularly according to the date. Some would be yyy.org/2006/august/10/frontpage.jpg and zzz.com/frontpages/060810.jpg, for example. I am using a weblog, so maybe the dates should be taken from that clock. I assume I should use PHP, but don't know how to go about it.

Answers

  1. rob

    On 2006-08-11 11:10:56


    Well, if you want them to update everyday then something like this would work: Link Name"; ?> You can find more about the date function here: http://us3.php.net/manual/en/function.date.php