PHP - Looping through date()

How do you loop thru days? eg start at March 19th and go through to April 19th or something like that?

basically i need to create a loop that starts at the current date, and then works backwards until a specific day. Unless the current date is greater than a certain date i specify, in which case the loop will start at that certain date and work backwards.

basically i have a folder of htm documents named with the convention dd_mm_yyyy eg “03_04_2007.htm”.

i want to use PHP to create an unordered list where each <li> contains an <a> tag with a href to on of the htm documents, starting at the current date (or the last available document if the current date is later than that) and working back till the first available document.

I hope this is clear - anyone got any suggestions?

Oh btw - im currently using gmdate(“m”, time()+(9.56060)) to get the current date for my timezone (Adelaide, Australia) because my server is using PHP 4…